Caltech Home > Caltech HPC Homepage > Documentation > FAQ > Why am I not getting job notification emails? How do I make them stop?
Search open search form

Getting job information through email

Why set up email notifications

You may want to have the scheduler send you email on certain events.  For example, if your job is expected to run for a long time, you might want the scheduler to tell you if it fails, or if it completes via email. If the queue is long and you want to know when your job started, you can do that also.

How do I set up Job Notification Emails?

Add the following to you sbumission script to set the email address:


#SBATCH --mail-user=$USER@caltech.edu  

Set different types of notifications:

#SBATCH --mail-type=BEGIN
#SBATCH --mail-type=END
#SBATCH --mail-type=FAIL
#SBATCH --mail-type=REQUEUE
#SBATCH --mail-type=ALL


All of these can also be set on the command line when submitting the jobs

You may also want to set up a file called ".forward" in you home directory with your email address for any other stray emails from the system