spawnv

Donn Cave donn at drizzle.com
Wed Aug 15 01:28:40 EDT 2001


Quoth Olivier Scalbert <olivier.scalbert at algosyn.com>:

| On my Linux box, the following code does not start /usr/bin/gears:
|
| import os
| print os.spawnv(os.P_WAIT, "/usr/bin/gears", ())
|
| In fact it print 127 !

   >>> print os.spawnv.__doc__
   spawnv(mode, file, args) -> integer

   Execute file with arguments from args in a subprocess.
   ...

"args" means the argv argument vector for the command, which
starts with the name of the program.  E.g.,

   os.spawnv(os.P_WAIT, "/usr/bin/gears", ("gears",))

	Donn Cave, donn at drizzle.com



More information about the Python-list mailing list