A ahmettaha Registered Nov 10, 2006 #1 Hello, How can I check if tomcat is running from shell. The only scripts that I found are for a different version of ps, so I couldnt use them. thanks
Hello, How can I check if tomcat is running from shell. The only scripts that I found are for a different version of ps, so I couldnt use them. thanks
E egportal2002 Registered Nov 17, 2006 #2 Does the following (or a close variation of it): if [ "x`ps -aef | egrep [t]omcat`" == "x" ]; then echo "tomcat not running" else echo "tomcat running" fi work for you?
Does the following (or a close variation of it): if [ "x`ps -aef | egrep [t]omcat`" == "x" ]; then echo "tomcat not running" else echo "tomcat running" fi work for you?