[opencms-dev] cmsshell.bat -script=script.txt
Christoph P. Kukulies
kuku at physik.rwth-aachen.de
Mon Apr 14 13:13:24 CEST 2008
On Mon, Apr 14, 2008 at 12:20:52PM +0200, Christoph P. Kukulies wrote:
> 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.
And to add a last note to the problem solution:
Invoking
cmsshell "script=script.txt" (in quotes)
seems to solve the problem without any tweaking of the .bat source.
I start to think that cmsshell is a quite powerful means to do things
in the background (by cron jobs or mail agents).
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
More information about the opencms-dev
mailing list