As UnderMine suggests, I'd suggest you use a lock file instead of trying to 'ps' the process since a lock file is automatically unlocked when a process dies. It is always possible, and I even seen cases of this, that the process you are checking has actually died and that another arbitrary process has started with the same PID.
bluto
In reply to Re: die; not really dying
by bluto
in thread die; not really dying
by geektron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |