os.execv

Skip Montanaro skip at pobox.com
Tue Mar 4 20:35:26 EST 2003


    >>> 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





More information about the Python-list mailing list