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