Re: Shell script to check if Tomcat is running?

2003-12-03 Thread irubenis
Does anybody has script also for unix systems like REDHAT linux? This looks likes for windows! 2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef | grep java| grep -v grep | wc -l` if [ $COWBELL 0 ]; then echo Woohoo - the

Re: Shell script to check if Tomcat is running?

2003-12-03 Thread Oscar Carrillo
This is for unix/linux. Oscar On Tue, 2 Dec 2003 [EMAIL PROTECTED] wrote: Does anybody has script also for unix systems like REDHAT linux? This looks likes for windows! 2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef

RE: Shell script to check if Tomcat is running?

2003-12-02 Thread Shapira, Yoav
Howdy, You can also always add -DthisIsMyTomcat=true (or any other distinguishing argument) to the java runtime options, so that you can grep the ps output for this specific parameter if there are multiple java processes. Yoav Shapira Millennium ChemInformatics -Original Message- From:

Shell script to check if Tomcat is running?

2003-12-01 Thread Tom Ly
I plan on using cron to automatically run a script to check if Tomcat is running. How would I write one? -Tom - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

Re: Shell script to check if Tomcat is running?

2003-12-01 Thread Tim Funk
2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef | grep java| grep -v grep | wc -l` if [ $COWBELL 0 ]; then echo Woohoo - the process is there; fi - OR - # Assume glodenfile

Re: Shell script to check if Tomcat is running?

2003-12-01 Thread Oscar Carrillo
On Mon, 1 Dec 2003, Tim Funk wrote: 2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef | grep java| grep -v grep | wc -l` if [ $COWBELL 0 ]; then echo Woohoo - the process is there; fi - This