lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.