<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Queue_Manager_emailing_when_jobs_run</id>
		<title>Queue Manager emailing when jobs run - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://stab.st-andrews.ac.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Queue_Manager_emailing_when_jobs_run"/>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Queue_Manager_emailing_when_jobs_run&amp;action=history"/>
		<updated>2026-06-02T18:39:48Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://stab.st-andrews.ac.uk/wiki/index.php?title=Queue_Manager_emailing_when_jobs_run&amp;diff=3388&amp;oldid=prev</id>
		<title>PeterThorpe: Created page with &quot;You have four options to make it email you:  1)	Add the commands to your shell script at the top:  #$ -m e  #$ -M youmail@st-andrews.ac.uk  2)	Add to your .bash_profile      (...&quot;</title>
		<link rel="alternate" type="text/html" href="http://stab.st-andrews.ac.uk/wiki/index.php?title=Queue_Manager_emailing_when_jobs_run&amp;diff=3388&amp;oldid=prev"/>
				<updated>2019-05-08T14:14:58Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;You have four options to make it email you:  1)	Add the commands to your shell script at the top:  #$ -m e  #$ -M youmail@st-andrews.ac.uk  2)	Add to your .bash_profile      (...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You have four options to make it email you:&lt;br /&gt;
&lt;br /&gt;
1)	Add the commands to your shell script at the top:&lt;br /&gt;
 #$ -m e&lt;br /&gt;
 #$ -M youmail@st-andrews.ac.uk&lt;br /&gt;
&lt;br /&gt;
2)	Add to your .bash_profile      ( add these two lines to it so you never have to do it again. A bit dangerous if you have lots of jobs!!)&lt;br /&gt;
 nano .bash_profile&lt;br /&gt;
 # alias so I get emails when job are done.&lt;br /&gt;
 alias qsub=&amp;#039;qsub -m e -M youremail@st-andrews.ac.uk&amp;#039;&lt;br /&gt;
&lt;br /&gt;
3)	add it to the command line when you qsub a job&lt;br /&gt;
 qsub -V -m e -M whatever@st-andrews.ac.uk  shellscript.sh&lt;br /&gt;
4)	ignore it altogether. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Email can be sent in the following situations:&lt;br /&gt;
       -m b|e|a|s|n,...&lt;br /&gt;
              Defines  or  redefines  under which circumstances mail is to be sent to the job owner or to the users defined&lt;br /&gt;
              with the -M option described below. The option arguments have the following meaning:&lt;br /&gt;
&lt;br /&gt;
              ‘b’     Mail is sent at the beginning of the job.&lt;br /&gt;
              ‘e’     Mail is sent at the end of the job.&lt;br /&gt;
              ‘a’     Mail is sent when the job is aborted or&lt;br /&gt;
                      rescheduled.&lt;br /&gt;
              ‘s’     Mail is sent when the job is suspended.&lt;br /&gt;
              ‘n’     No mail is sent.&lt;br /&gt;
&lt;br /&gt;
       -M user[@host],...&lt;/div&gt;</summary>
		<author><name>PeterThorpe</name></author>	</entry>

	</feed>