python script terminating
Aditya Vaish
Aditya.Vaish at efi.com
Mon Dec 18 23:28:55 EST 2006
I have a python script running on Debian sarge. It loops and walk through a
directory
while 1:
for dirn in os.listdir(buildpath):
if os.path.exists(os.path.join(buildpath, dirn, 'pass')) and
dirn.find(build1) != -1:
# case 1
Do something
elif os.path.exists(os.path.join(buildpath, dirn, 'pass')) and
dirn.find(build2) != -1:
# case 2
Do something
The script in turn calls a perl script to do something. The problem is that
the python script is getting terminated while the perl script is running and
thus the program called by the perl script is hung.
ps aux|grep T
root 1123 0.0 0.0 4116 20 pts/0 T Dec18 0:00 python
root 1124 0.0 0.0 4112 20 pts/0 T Dec18 0:00 python
Regards,
Aditya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061219/9e5f89df/attachment.html>
More information about the Python-list
mailing list