os.spawn
Donn Cave
donn at u.washington.edu
Tue Sep 11 14:05:13 EDT 2001
Quoth syt at pegasus.logilab.fr (Sylvain Thenault):
| how can I do for knowing what happend when I do an os.spawnv()
|
| for example, if i do
|
| import os
| os.spawnv(P_WAIT, '/bin/echo', 'this is a spawn test')
|
| I can't see anything, and don't know what have been made...
Normal return from os.spawnv should be 0. Anything else indicates
failure.
>>> print os.spawnv.__doc__
spawnv(mode, file, args) -> integer
Execute file with arguments from args in a subprocess.
Args here should be a tuple or list like sys.argv:
os.spawnv(os.P_WAIT, '/bin/echo', ('echo', 'this is a spawn test'))
Donn Cave, donn at u.washington.edu
More information about the Python-list
mailing list