os.execv

Ulrich Petri ulope at gmx.de
Tue Mar 4 20:17:06 EST 2003


Hi,

i feel somewhat stupid for not beeing able to figure this one out... :

I try to use the os.exec[vl] function.

----
>>> import os
>>> os.execv("/usr/bin/find", ("find", "/ -name test"))
find: / -name test: No such file or directory

>>> import os
>>> os.execl("/usr/bin/find", "find", "/ -name test")
find: / -name test: No such file or directory

----
isn't this supposed to work? so what am i doing wrong?

Thanks

Ciao Ulrich

PS: I'm using Python 2.2.1 (src) on linux (SuSE)






More information about the Python-list mailing list