Skip to content

Commit

Permalink
show how to customize emails
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Sep 28, 2017
1 parent d77035e commit 1e61cb5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions help/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,17 @@ most cases are equivalent to the more precise term *processor core* /
*core*\. The \ *multi core age*\ is here now \ *:-)*


How can I customize emails that I get after a job has completed?
----------------------------------------------------------------

Use the mail command and you can customize it to your liking but make sure
that you send the email via the login node.

As an example, add and adapt the following line at the end of your script::

echo "email content" | ssh stallo-1.local mail -s "job finished in /global/work/${USER}/${SLURM_JOBID}" firstname.lastname@uit.no


Running many short tasks
========================

Expand Down Expand Up @@ -372,7 +383,3 @@ And here is the ``dowork.sh`` script:
.. literalinclude:: files/dowork.sh
:language: bash
:linenos:




0 comments on commit 1e61cb5

Please sign in to comment.