execl problem on linux

Remco Gerlich scarblac-spamtrap at pino.selwerd.nl
Wed Apr 26 04:41:00 EDT 2000


Michael Esveldt wrote in comp.lang.python:
> This may be bordering on off topic but the following is happening with 
> all the exec() methods...
> 
> Python 1.5.2 (#0, Apr  3 2000, 14:46:48)  [GCC 2.95.2 20000313 (Debian 
> GNU/Linux
> )] on linux2
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import os
> >>> os.execl("/usr/bin/vim")
> Internal error: lalloc(0, )
> Internal error: lalloc(0, )
> bash-2.03$
> 
> I'm at a loss, any ideas?

'man execl' seems to say that it needs at least one argument string as well,
and indeed, os.execl("/usr/bin/vim","") works.

I don't know what's causing the error, maybe it's vim crashing on an undefined
argument list or something.

>>> import os
>>> os.execl("/usr/bin/emacs")
*** Error in XEmacs initialization
(wrong-type-argument stringp nil)
etc

Yes, that seems to be it :)

-- 
Remco Gerlich,  scarblac at pino.selwerd.nl
Hi! I'm a .sig virus! Join the fun and copy me into yours!



More information about the Python-list mailing list