send command to parent shell

Diez B. Roggisch deets at
Thu Oct 14 13:55:29 CEST 2010

Martin Landa <landa.martin at> writes:

> Hi,
> is there a way how to send command from python script to the shell
> (known id) from which the python script has been called? More
> precisely, the goal is to exit running bash (on Linux) or cmd (on
> Windows) directly from wxPython application, currently user needs to
> quit wxPython application and then underlaying command prompt by
> 'exit' command.

Why is it started from the shell then in the first place? And if I did
it, I beg you to *not* close it... if I wanted that, I would have used 

 exec program


More information about the Python-list mailing list