hi,
I need a command that restart the tomcat server.
for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script.
like using the grep and ps commands can i use?
1.find the tomcat is running or not if yes find the command and try to execute that command again
for example
ps -ef| grep tomcat >>/dev/null
i am not sure how to write such scenario... please help anybody on this?
Thank you
Sankar