[opencms-dev] Using the cmsshell.sh utility

Stephan Hartmann beffe at beffe.de
Tue Mar 15 20:47:12 CET 2005


Hi Daniel,

the file is in dos-format (i.e. \r\n as line breaks).
You have to convert it with dos2unix to unix format.

Maybe you'll also have to adjust the classpath in the file.

Regads,
Stephan

----- Original Message -----
From: "Daniel Rhoden" <drhoden at iiwinc.com>
To: "The OpenCms mailing list" <opencms-dev at opencms.org>
Sent: Tuesday, March 15, 2005 8:34 PM
Subject: [opencms-dev] Using the cmsshell.sh utility


> 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.j
ar:../../../common/lib/jsp-api.jar"
>
> java -classpath .:$TOMCATLIB$OCMSLIBPATH:classes
> org.opencms.main.CmsShell "$@"
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>




More information about the opencms-dev mailing list