Hi Ben,
Thanks for the reply.
test.sh
======
1) ps -ef | grep
java root 3231 1 0 04:57:06 pts/13 1:41 /usr/jdk/j2sdk1.4.2_09/bin/java -Xms256m -Xmx512m -Djava.endorsed.dirs=/space/n
2) If server is running the above line will be displayed. So I will check whether the above line is displaying or not, otherwise I will send mail
using
Mail login-name@hostname
Crontab
=======
Here i will call test.sh for every second.
I am not sure whether this is the right way or not.
So only I Posted this question to the forum.
Is there any other way to find whether the tomcat server is running or
not on Linux.
[ December 20, 2006: Message edited by: Chethan Sharma ]