[opencms-dev] CmsShell strange behaviour

Achim Westermann achim.westermann at questico.de
Wed Jan 27 10:32:34 CET 2010


Hi Pasquale,

perhaps as the last command in your script you should have  a line with "exit" to stop the cmsshell?

HTH,

Achim

pasqualeb wrote:
> Hi all, I need to change the type of several resources in the VFS. I 
> think that CmsShell is the best solution for this. For a test, I created 
> a script which sounds like this: --------- /login "pasquale" 
> "xxxxxxxxxxx" setCurrentProject "Offline" prompt "" lockResource 
> "/sites/default/doc/schede/VAR/test.html" chtype 
> "/sites/default/doc/schede/VAR/test.html" 3000 unlockResource 
> "/sites/default/doc/schede/VAR/test.html" prompt "FINISH"/ --------- and 
> I execute the script with the command line *./cmsshell.sh 
> -script=prova.txt* The script works fine, but after his execution the 
> cmsShell seems to be hanged and I have to close with a CTRL+C. Moreover, 
> If I omit the {prompt ""} command the shell prints a prompt string for 
> each line in the script, which is very annoying in the case (and it's my 
> case) of a lots of commands. It's this the normal behaviour or I made 
> some error? Thanks, Pasquale
> ------------------------------------------------------------------------
> View this message in context: CmsShell strange behaviour 
> <http://old.nabble.com/CmsShell-strange-behaviour-tp27280363p27280363.html>
> Sent from the OpenCMS - Dev mailing list archive 
> <http://old.nabble.com/OpenCMS---Dev-f654.html> at Nabble.com.
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> 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