python script terminating

2006-12-18 Thread Aditya Vaish
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/0TDec18   0:00 python

root  1124  0.0  0.0  4112   20 pts/0TDec18   0:00 python

 

Regards,

Aditya

-- 
http://mail.python.org/mailman/listinfo/python-list

python script terminating

2006-12-19 Thread Aditya Vaish
Using perl