spawnv

Olivier Scalbert olivier.scalbert at algosyn.com
Wed Aug 15 03:11:51 EDT 2001


Donn Cave wrote:

> 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

Thanks, it is ok !

Olivier




More information about the Python-list mailing list