Dear Friends,<br><br>I have to do a series of job in a remote machine. I put each job in a text file called &#39;job&#39; as and wrote the following code that can read each line in the text file and execute the job.<br><br>
I login to the machine and run the script as &#39;python job.py&#39;. But when i logout from the machine, the job gets killed. So i submitted the job in background as &#39;python job.py &amp;&#39;. Even in this case, when i logout from the machine, the job gets killed. Why is this so. How can i avoid the same ?<br>
<br>#!/usr/bin/env python    <br>from sys import argv<br>import subprocess<br>for line in open(&#39;job&#39;):<br>    subprocess.call(line,shell=True)<br><br>Thanks,<br>Bala<br>