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