|
From: Prabhu R. <pr...@ae...> - 2004-08-13 17:32:28
|
>>>>> "FP" == Fernando Perez <Fer...@co...> writes:
FP> The code already works fairly well, with one significant
FP> caveat: any process started via os.system() (whether directly
FP> or implicitly using !cmd) will hang after a while. I have
FP> currently no solution for this, but will welcome any ideas.
FP> Note that the problem seems to only affect long-running GUI
FP> apps, simple '!grep foo *' type things appear to function just
FP> fine. But something like '!gv foo.eps &' will open gv, and
FP> after about 30 seconds the gv instance stops responding to all
FP> keyboard/mouse input.
You probably already have tried this but how about using
os.spawnl(...). Here a simple use case:
pid = os.spawnl(os.P_NOWAIT, script, script)
cheers,
prabhu
|