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

Re: notify if a process take more than X time



On 27.01.2014 19:43, Pol Hallen wrote:
> Hi all,
> 
> I need add to my script a notify if a process take more than X time, so
> using ps I can see what time take a process:
[snip]

Maybe use timeout(1) to send a signal (e.g. USR1) and have your script
trap that signal and send a mail when it receives it?

Regards,
/Lars


Reply to: