Sorry I realize now that you wrote "how to send a command to the
shell" and not "how to kill the shell".
In this case I don't know exactly what you mean.
Regards,
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2010/10/14 Giampaolo Rodolà :
> On Wed, 13 Oct 2
On Wed, 13 Oct 2010 06:30:15 -0700, Martin Landa wrote:
> is there a way how to send command from python script to the shell
> (known id) from which the python script has been called?
By using psutil (http://code.google.com/p/psutil/):
giampa...@ubuntu:~$ python
Python 2.6.6 (r266:84292, Sep 15 2
Martin Landa 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
On Wed, 13 Oct 2010 06:30:15 -0700, Martin Landa wrote:
> is there a way how to send command from python script to the shell
> (known id) from which the python script has been called?
For Unix, this should work, but in general it's the wrong thing to do:
import os
import signal
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