Step 1:
- Do look at the article Configuring CentOS 5 as an SMTP Mail Client with sendmail for configuring your Torque Server to become a SMTP Mail Client.
Step 2:
Ensure the Torque Server has this line
- “set server mail_from = adm”(You can replace adm with another useird of your choice). You may want to take a look at Setting up Torque Server on xCAT 2.x from Linux Toolkit
Step 3:
Finally, to ensure that the batch system can send an email to the user when the job start, end or abort, you have to set 2 options
- -m switch which define wh information send
- -M switch on where the information will be send
For example,
# Send notification when job starts. #PBS -m b # Send notification when job finishes and aborts. #PBS -m ea # Send notification when job starts, finishes and aborts. #PBS -m bea
A typical submission script will be
#!/bin/bash #PBS -N jobname #PBS -j oe #PBS -V #PBS -m bea #PBS -M kittycool@linucluster.wordpress.com #PBS -l nodes=2:ppn=8 ## pre-processing script cd $PBS_O_WORKDIR NCPUS=`cat $PBS_NODEFILE | wc -l` echo $NCPUS