[opencms-dev] CmsShell strange behaviour

pasqualeb pasquale.basile at gmail.com
Wed Jan 27 13:13:19 CET 2010


Yes,
the exit command solves all but the repeating string prompt. This is not a
"true" problem, anyway.
Thanks,
Pasquale


Achim Westermann wrote:
> 
> 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
> 
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://old.nabble.com/CmsShell-strange-behaviour-tp27280363p27338070.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list