python script terminating
Fredrik Lundh
fredrik at pythonware.com
Tue Dec 19 11:39:04 EST 2006
Aditya Vaish wrote:
> 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.
so how do you run the perl script ?
</F>
More information about the Python-list
mailing list