os.execv

Skip Montanaro skip at pobox.com
Wed Mar 5 02:35:26 CET 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