[CentOS] centos command to monitor a process for exit

Daniel de Kok me at danieldk.org
Sat Jan 12 17:39:45 UTC 2008


On 1/10/08, Jerry Geis <geisj at pagestation.com> wrote:
> Is there a command that will monitor a process for exiting (crash or
> normal exit) and
> then execute another command based on the said process no longer being
> active?

If you want something simple, the wait(1) command can block until some
process specified by its PID terminates.

-- Daniel



More information about the CentOS mailing list