Pages
Home
Online Store
Tuesday, May 9, 2017
Send an email from the terminal when job finishes
some_program.sh; echo "some_program.sh finished running" | mail -s "Job Status Update" username@gmail.com
This can also be used when a program is already running
some_program.sh
[Ctrl] Z
[1]+ Stopped some_program
fg ; echo "some_program.sh finished running" | mail -s "Job Status Update" username@gmail.com
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment