in reply to Re: Keeping track of children from previous runs of a script
in thread Keeping track of children from previous runs of a script

I think salva's first option is the best way to go. If you are really paranoid about PID-wrap, you could put the executable name in the file along with the PID. Then, if you determine that the PID is active, you can use a variety of methods to determine the executable name and match that as well.

fnord

  • Comment on Re^2: Keeping track of children from previous runs of a script

Replies are listed 'Best First'.
Re^3: Keeping track of children from previous runs of a script
by salva (Canon) on Mar 10, 2011 at 18:00 UTC
    ajwood, note also that the methods described in my post are not mutually exclusive. Actually, it is quite common to combine the first two.