Problem with execv
sebv at netscape.net
sebv at netscape.net
Thu Jun 29 15:04:16 EDT 2000
Hi,
I'm trying to execute a simple 'ls' command from python, using
execv but I have a TypeError. I couldn't find any similar
problem reported somewhere else. Please give me a advice !
thanks,
Sebastian.
Python 1.5.2 (#2, Jun 28 2000, 16:52:22) [GCC 2.8.1] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import os
>>> os.execv('ls','')
Traceback (innermost last):
File "<stdin>", line 1, in ?
TypeError: illegal argument type for built-in operation
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list