Problem with running external process

ToMasz t_mo_info at
Fri Jan 20 13:42:20 EST 2006

There is a script running continuously which executes an external
script in a loop using os.spawnlp(os.P_WAIT, '') function.
After several hundred executions (cycles of the loop), the main script
gets an exception while trying to start the process. This situation is
repeated until the main script is killed. Before it is killed, no other
command can be executed - I'm getting the message:

-bash: fork: Resource temporarily unavailable.

How to properly execute another process from my script?

More information about the Python-list mailing list