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 > > CO

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

RE: Shell script to check if Tomcat is running?

2003-12-02 Thread Shapira, Yoav
age- >From: Oscar Carrillo [mailto:[EMAIL PROTECTED] >Sent: Monday, December 01, 2003 6:42 PM >To: Tomcat Users List >Subject: Re: Shell script to check if Tomcat is running? > >On Mon, 1 Dec 2003, Tim Funk wrote: > >> 2 really simple ways >> >> >>

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 > ---

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 sh

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