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

Re: email notification when a process ends?



On Wed,15.Apr.09, 13:00:25, Zhengquan Zhang wrote:
> Dear debian users,
> I have got a script that does database query running for hours. Is there
> any way to send myself an email after the process for the script ends?

Easiest would be to put something like

echo 'Master, job is done' | mail -s "Database query status" master@server

in your script (you need package bsd-mailx or similar for this).

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: