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:

ps -ao cmd,etime|grep backup
/bin/sh ./backup    03:44:55

what's the easy way to do a notify by email?

redirect output of ps to file and use sed for analize the past time, next verify with if/then or there's a better way?

any idea?

thanks for help!

Pol


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52e69ab8.8080...@fuckaround.org

Reply via email to