Thank you so much. I could see the job running with nohup after logout.<br><br>Bala<br><br><div class="gmail_quote">On Fri, Jul 30, 2010 at 3:49 PM, Hugo Arts <span dir="ltr">&lt;<a href="mailto:hugo.yoshi@gmail.com">hugo.yoshi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Fri, Jul 30, 2010 at 2:36 PM, Bala subramanian<br>
&lt;<a href="mailto:bala.biophysics@gmail.com">bala.biophysics@gmail.com</a>&gt; wrote:<br>
&gt; Dear Friends,<br>
&gt;<br>
&gt; I have to do a series of job in a remote machine. I put each job in a text<br>
&gt; file called &#39;job&#39; as and wrote the following code that can read each line in<br>
&gt; the text file and execute the job.<br>
&gt;<br>
<br>
</div>Why not just write a shellscript? that&#39;s essentially a list of jobs<br>
anyway. if you make the first line of the file #! /bin/bash you can<br>
basically execute it directly.<br>
<div class="im"><br>
&gt; I login to the machine and run the script as &#39;python job.py&#39;. But when i<br>
&gt; logout from the machine, the job gets killed. So i submitted the job in<br>
&gt; background as &#39;python job.py &amp;&#39;. Even in this case, when i logout from the<br>
&gt; machine, the job gets killed. Why is this so. How can i avoid the same ?<br>
&gt;<br>
<br>
</div>you need to run &#39;nohup python job.py&#39;. background process still get<br>
SIGHUP when you log out, so they&#39;ll still exit.<br>
<br>
<a href="http://www.computerhope.com/unix/unohup.htm" target="_blank">http://www.computerhope.com/unix/unohup.htm</a><br>
<font color="#888888"><br>
Hugo<br>
</font></blockquote></div><br>