Use the mailme
command to send an email to yourself when a long-running task is complete.
In the command line:
python longscript.py; mailme [netid]@illinois.edu
In Python:
from subprocess import run
run('mailme', '[netid]@illinois.edu')
In ipython:
%run myscript.py; !mailme [netid]@illinois.edu
In command line:
python myscript.py | mailme [netid]@illinois.edu "Task is Complete"
In Python
from subprocess import run
message_body = "Message content"
run(['mailme', '[email protected]', 'Task is Complete'], input=message_body.encode('utf8'))