If you have a unix process running then this script can be used to send an email when it is done.
First find th epid of the process
(while kill -0 ; do sleep 1; done) && (echo 'Process
Finished now' | mail -s 'job done' Email@recipient.com)
Stuff I think I should write down so I don't forget it....