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"><<a href="mailto:hugo.yoshi@gmail.com">hugo.yoshi@gmail.com</a>></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>
<<a href="mailto:bala.biophysics@gmail.com">bala.biophysics@gmail.com</a>> wrote:<br>
> Dear Friends,<br>
><br>
> I have to do a series of job in a remote machine. I put each job in a text<br>
> file called 'job' as and wrote the following code that can read each line in<br>
> the text file and execute the job.<br>
><br>
<br>
</div>Why not just write a shellscript? that'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>
> I login to the machine and run the script as 'python job.py'. But when i<br>
> logout from the machine, the job gets killed. So i submitted the job in<br>
> background as 'python job.py &'. Even in this case, when i logout from the<br>
> machine, the job gets killed. Why is this so. How can i avoid the same ?<br>
><br>
<br>
</div>you need to run 'nohup python job.py'. background process still get<br>
SIGHUP when you log out, so they'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>