Lazyweb, a question: is there a command line friendly tool that will watch a pro...

@mhoye@cosocial.ca

Lazyweb, a question: is there a command line friendly tool that will watch a process for you and _send you a notification_ when it exits, particularly if it exits with an error?

Like, say:

$> monitor --email foo barbaz

... and if barbaz errors out, I get an email at foo saying, barbaz failed, here's the error, here's the stdout/stderr.

It seems non-impossible to gin up but I'm wondering if we've got something on the shelf.