Related to os module

Venkatesh Prasad Ranganath rvprasad at cis.ksu.edu
Sun Dec 10 12:57:08 EST 2000


Hi,

Following is the code in question

>>>import os
>>>os.execv("/bin/ls", ["-l"])

The output should be that of executing "ls -l" instead it is of "ls".  "-l" is
being discarded.  What might be wrong?

-- 
Venkatesh Prasad Ranganath



More information about the Python-list mailing list