How to run command in the background and notify me via email when done

Posted by Abs on Stack Overflow See other posts from Stack Overflow or by Abs
Published on 2010-06-02T23:36:27Z Indexed on 2010/06/02 23:44 UTC
Read the original article Hit count: 154

Filed under:
|
|
|

Hello all,

I have the following command which will take ages to run (couple of hours). I would like to make it a background process and for it to send me an email when its done.

For the cherry on the top, any errors it encountered should write to a text file when an error has occurred?

find . -type f -name "*.rm" -exec ./rm2mp3.sh \{} \; -exec rm \{} \;

How can I do this with my above command?

© Stack Overflow or respective owner

Related posts about linux

Related posts about bash