os.execv
Ulrich Petri
ulope at gmx.de
Tue Mar 4 22:06:09 EST 2003
"Skip Montanaro" <skip at pobox.com> schrieb im Newsbeitrag
news:mailman.1046828168.14751.python-list at python.org...
> >>> import os
> >>> os.execv("/usr/bin/find", ("find", "/ -name test"))
> find: / -name test: No such file or directory
>
> Maybe
>
> os.execv("/usr/bin/find", "find", "/", "-name", "test")
>
> is what you're after.
>
> Skip
Thanks that did it.
Kinda stupid behaviour (imho)
Ciao Ulrich
More information about the Python-list
mailing list