I've had a small script running for a while that basically runs ps -auxfwww and greps the output for 'catalina', mailing me if the process has fallen over. (The extra w options make the process name long enough to fit in the whole catalina command line).
However, this only works until the java process gets swapped out, at which point ps reports the process as [java] - there is no way around this that I know of despite several posts to groups etc. So I think I need a script to launch catalina and store the pid somewhere that I can use killall 0 on - this is apparently the 'correct' way to check a process is running. Is such a script available or does anyone have any pointers on writing one? Anyone do something similar or suggest some other kind of wrapper service? Cheers cam __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
