[opencms-dev] Using the cmsshell.sh utility

Daniel Rhoden drhoden at iiwinc.com
Tue Mar 15 20:34:49 CET 2005


Has anyone been able to use the cmsshell.sh utility in Linux for OpenCMS 
6 beta 1? 

I am having the following problem when trying to execute the file with 
bash (I already did 'chmod a+x cmsshell.sh' ):

bash-2.05b$ ./cmsshell.sh
: bad interpreter: No such file or directory
bash-2.05b$


or, when I do this:

bash-2.05b$ sh ./cmsshell.sh
: command not found 4:
'/cmsshell.sh: line 6: syntax error near unexpected token `do
'/cmsshell.sh: line 6: `for i in lib/*.jar; do
bash-2.05b$

Any ideas?

Here is the script's contents:

#!/bin/sh
# Start script for the OpenCms Shell
# Please make sure that "servlet.jar" is found, the path used below was 
tested with Tomcat 4.1

OCMSLIBPATH=""
for i in lib/*.jar; do
   OCMSLIBPATH="$OCMSLIBPATH":"$i"
done

TOMCATLIB="../../../common/lib/servlet.jar:../../../common/lib/servlet-api.jar:../../../common/lib/jsp-api.jar"

java -classpath .:$TOMCATLIB$OCMSLIBPATH:classes 
org.opencms.main.CmsShell "$@"



More information about the opencms-dev mailing list