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:
---------
<i>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"</i>
---------
and I execute the script with the command line
<b>./cmsshell.sh -script=prova.txt</b>
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
<br><hr align="left" width="300">
View this message in context: <a href="http://old.nabble.com/CmsShell-strange-behaviour-tp27280363p27280363.html">CmsShell strange behaviour</a><br>
Sent from the <a href="http://old.nabble.com/OpenCMS---Dev-f654.html">OpenCMS - Dev mailing list archive</a> at Nabble.com.<br>