Here is an example of pbs that I use:
#!/bin/bash
#PBS -S /bin/bash
#PBS -N myJob
#PBS -l nodes=1:ppn=4
#PBS -l walltime=50:00:00
#PBS -q route
export [email protected]
#PBS -m ae
#PBS -M [email protected]
./script1.sh
echo $PBS_JOBID $PBS_O_WORKDIR | mail -s "$PBS_JOBNAME script1 done" $MYMAIL
./script2.sh
echo $PBS_JOBID $PBS_O_WORKDIR | mail -s "$PBS_JOBNAME script2 done" $MYMAIL
./script3.sh
echo $PBS_JOBID $PBS_O_WORKDIR | mail -s "$PBS_JOBNAME script3 done" $MYMAIL
./script4.sh
As you can see I want to receive notifications during the process. My problem is that users must write twice their email address.
I tried:
#PBS -M $MYMAIL
but it does not work.
I also tried to find a pbs variable containing the email stored during
#PBS -M [email protected]
but nothing ...
An idea ?