Re: [CentOS] centos command to monitor a process for exit

2008-01-12 Thread Daniel de Kok
On 1/10/08, Jerry Geis <[EMAIL PROTECTED]> 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 proc

Re: [CentOS] centos command to monitor a process for exit

2008-01-12 Thread William L. Maltby
On Fri, 2008-01-11 at 16:06 -0800, Bill Campbell wrote: > On Sat, Jan 12, 2008, mouss wrote: > >Les Mikesell wrote: > >> Jerry Geis 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 n

Re: [CentOS] centos command to monitor a process for exit

2008-01-11 Thread Bill Campbell
On Sat, Jan 12, 2008, mouss wrote: >Les Mikesell wrote: >> Jerry Geis 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? >>> >>> Or is there a "wrapper" command t

Re: [CentOS] centos command to monitor a process for exit

2008-01-11 Thread mouss
Les Mikesell wrote: > Jerry Geis 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? >> >> Or is there a "wrapper" command that runs a process and when that >> process

Re: [CentOS] centos command to monitor a process for exit

2008-01-10 Thread Les Mikesell
Jerry Geis 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? Or is there a "wrapper" command that runs a process and when that process exists due to crashing or just exit

Re: [CentOS] centos command to monitor a process for exit

2008-01-10 Thread Anup Shukla
Jerry Geis 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? Or is there a "wrapper" command that runs a process and when that process exists due to crashing or just exit

Re: [CentOS] centos command to monitor a process for exit

2008-01-10 Thread Ray Van Dolson
On Thu, Jan 10, 2008 at 10:22:56AM -0500, Jerry Geis 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? You can use SNMP to do this. It will set a flag in a certain OID w

[CentOS] centos command to monitor a process for exit

2008-01-10 Thread Jerry Geis
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? Or is there a "wrapper" command that runs a process and when that process exists due to crashing or just exiting normally) that