[lug] tomcat5.5 as daemon on FC4

D. Stimits stimits at comcast.net
Sun Nov 20 13:53:43 MST 2005


...
>> #!/bin/bash
>>
>> JAVA_HOME=/opt/jdk1.5.0_05/
>> CATALINA_HOME=/usr/local/tomcat5
>> DAEMON_HOME=/usr/local/tomcat5
>> TOMCAT_USER=tomcat
>> CATALINA_BASE=/usr/local/tomcat5
>>
>> CLASSPATH=\
>> $JAVA_HOME/lib/tools.jar:\
>> $CATALINA_HOME/bin/commons-daemon.jar:\
>> $CATALINA_HOME/bin/bootstrap.jar
> 
> Seems to me that this should all be on one line. The class
> path separator is :, not :\n.

The "\" just says it is still the same line, all it does is allow you to 
enter long lines more conveniently. If I were to "echo $CLASSPATH" the 
separator is only ":", there is no newline. So far as I know, this works 
in all shells; definitely it works in bash, ksh, csh, and tcsh. I have 
in fact used echo $CLASSPATH to verify it really was set right.

D. Stimits, stimits AT comcast DOT net



More information about the LUG mailing list