tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Wang" <>
Subject RE: Why cannot I put JSVC into a shell script to run
Date Fri, 01 Sep 2006 15:12:51 GMT

Thanks for the reply, you are correct. The same command line doesnot work when I
put into a shell command. I used the command netstat to see if Tomcat has
started since it listen to the port.

Command from console works, starting shell script not working without an error
shown up on the console.

Since I am new to the bash shell script, I am not sure how to debug it.

I checked the catalina.err, it seems cannot find a file, classpath was not
setup? But everything in the console works great. Could the environment on the
console and shell script different?



-----Original Message-----
From: Sameer Acharya [] 
Sent: Friday, September 01, 2006 12:48 AM
To: Tomcat Users List
Subject: Re: Why cannot I put JSVC into a shell script to run

Are you saying that when you run a command from console it works but when you
put it into a shell script and try and run the script it doesnt work ?

Are you using the same command from console , did you try and do a ps to see if
tomcat has started/not started ?
Putting the entire command on one line shouldnt be an issue .

Patrick Wang <> wrote: Hi,

I can only copy/paste the contents from to the console,
everything works fine. But when I run the command from
the console, it gave me no error, however the

ming/Q_21972914.html##> tomcat doesnot get started, I make sure the execute
rights is assigned, etc.

One thing is that I make all these strings into one single line in the, will this have any effect?

./bin/jsvc -jvm

ming/Q_21972914.html##> server -Xdebug -Xnoagent
-Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile
./logs/catalina.out -errfile ./logs/catalina.err


Do I need to setup the environment variable? However I can run the command from
the console without the environment setup either.



 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message