Re: how to send email once process finishes



On 2007-09-30, bahoo <b83503104@xxxxxxxxx> wrote:
Hi, I'd like to send myself an email once a particular process ends.
In other words, I know the process ID, and it usually runs for several
hours, so I'd like to know when it finishes. Is it possible to write a
script to do that?

Thanks
bahoo

(process; echo "its done!" | mail me) &
Or, if the process writes to standard output:
process 2>&1 | mail me &
.