send command to parent shell

Diez B. Roggisch deets at web.de
Thu Oct 14 07:55:29 EDT 2010


Martin Landa <landa.martin at gmail.com> 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

Diez



More information about the Python-list mailing list