[opencms-dev] cmsshell.bat -script=script.txt

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Mon Apr 14 12:20:52 CEST 2008


On Mon, Apr 14, 2008 at 10:49:30AM +0200, Christoph P. Kukulies wrote:
> Whatever I do I cannot get cmssshell.bat doing a (Windows) script
> execution (7.0.4):
> 
> cmsshell -script=script.txt
> cmsshell -script=./script.txt
> cmsshell -script=.\script.txt
> 
> I'm getting closer to my bulk user creation script as soon as I have
> solved this.
> 
> I'm already able to user cmsshell.bat under Windows and was even able
> to do a 
> 
> createUser user passwd "This is me"
> addUserToGroup user "Administrators"

I peeked a bit into cmsshell.bat and found that it somehow messes the
CMD_LINE_ARGS. -script=script.txt always becomes -script script.txt (the = 
sign is eaten up by something).

Anyway, "hardwiring" the command line into that script now seems to
work for me.


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
> 
> 
> That way I could probably solve the bulk user adding task best
> as soon I have solved this scripting issue.
> 
> Somewhere I found that there was an error in the class source code
> of CmsShell saying that the prefixes were swapped.
> (http://mail.opencms.org/pipermail/opencms-dev/2005q3/019852.html).
> 
> But I couldn't find the source of CmsShell quickly to verify that.
> 
> 
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list