Monitoring a SPECIFIC process

From: Guy Dallaire <dallaire_at_total.net>
Date: Fri, 18 Oct 1996 09:27:50 -0400

One of our users has a process that's running in the background and exits
from time to time for no specific reason. He gets no core dump when that
happens. We just can't find under what circumstances his proces dies.

Is there a (home mad or free) tool that I could use to "watch" that process
and tell me what was the system doing when the process exited or died ?
Maybe that could put us on the right track to investigate.

FYI:

That program is looping ad infinitum connecting to a database, scanning for
things to do, disconnecting, etc... It is started in background with a nohup
from a korn shell. We've included a sleep 10 command after the process
startup to make sure it has time to initialize before the korn shell exits.

By the way, a lot of people told on that list that in order to have a nohup
command run OK when it is near the end of a script, you have to put that
sleep command before a shell exits to prevent the command from dying
prematurly. Is this a BUG ? For example, does other UNIX need such "magic" ?

                                Thanks AGAIN

Guy Dallaire
dallaire_at_megatoon.com

"God only knows if god exists"
Received on Fri Oct 18 1996 - 16:41:02 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT