spawning a separate process
donn at u.washington.edu
Tue Apr 1 19:24:35 CEST 2003
Quoth "Mark Light" <light at soton.ac.uk>:
| I have a python program from which I wish to spawn an os.system call
| (a bash script) that may take several minutes to run - whilst the rest of
| the script carries on. I have tried using bits of code from books - but it
| never seem to work quite right
os.spawnv can do that and has some other attractions as well.
Perhaps that's one of the things you've already tried. I guess
I may be wasting my time with you, with your obscure dissatisfactions,
but in case anyone else is reading - check out os.spawnv if you
haven't already, mainly because it's much more reliable for commands
computed from input that might have unexpected shell syntax in them.
Donn Cave, donn at u.washington.edu
More information about the Python-list