execv giving a Fatal Error (11)

Rajarshi Guha rxg218 at psu.edu
Thu Feb 21 19:05:37 EST 2002


Hi,
  I have a small python script which uses PyGTK. In one of the call backs  
I do:

os.execv('/usr/bin/emacs',[])

But as a result I get:

Fatal error (11).Segmentation fault

This occurs even when I run a script that contains the os.exev(...) as the 
only command.

Does anybody know why this happens? Is there any other way I can implement 
this?

TIA,
-- 
-------------------------------------------------------------------
Rajarshi Guha                  | email: rajarshi at presidency.com
417 Davey Laboratory           | web  : http:// www.jijo.cjb.net
Dept. Of Chemistry             | ICQ  : 123242928
Pennsylvania State University  | AIM  : LoverOfPanda
-------------------------------------------------------------------
GPG Fingerprint: DCCB 4D1A 5A8B 2F5A B5F6  1F9E CDC4 5574 9017 AF2A 
Public Key     : http://pgp.mit.edu/
-------------------------------------------------------------------
Alone, adj.:
        In bad company.
                -- Ambrose Bierce, "The Devil's Dictionary"




More information about the Python-list mailing list