[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Watching processes?
- From: Jeff Pohlmeyer <yetanothergeek@...>
- Date: Tue, 1 Feb 2011 06:02:37 -0600
On Tue, Feb 1, 2011 at 5:32 AM, Gilles Ganault wrote:
> I was thinking of writing a small Lua script that would be ran every
> minute by Cron to parse the output of "ps aux" and send an e-mail in
> case the application is no longer listed.
If your appliance has a /proc filesytem and you know the process ID,
you could test for the existence of the /proc/[PID]/status file with
pure Lua.