Check if some process is running and send mail when finish.
nohup sh -c ' while true; do s="" ; s=`pgrep rsync` ; [ -z "$s" ] && echo "rsync process done" | mail -s "rsync done" [email protected] && break ; done ' &
Check if some process is running and send mail when finish.
nohup sh -c ' while true; do s="" ; s=`pgrep rsync` ; [ -z "$s" ] && echo "rsync process done" | mail -s "rsync done" [email protected] && break ; done ' &