How to logout from a Python Program?
Martin Franklin
mfranklin1 at gatwick.westerngeco.slb.com
Thu Oct 10 11:31:25 EDT 2002
More information about the Python-list mailing list
Thu Oct 10 11:31:25 EDT 2002
- Previous message (by thread): How to logout from a Python Program?
- Next message (by thread): How to logout from a Python Program?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thursday 10 Oct 2002 2:12 pm, Saqib Ali wrote: > Chris Liechti <cliechti at gmx.net> wrote in message > news:<Xns92A3181737F65cliechtigmxnet at 62.2.16.82>... > > > Erik Max Francis <max at alcyone.com> wrote in > > news:3DA4BDBC.27FA2B20 at alcyone.com: > > > > i think he wants to exit from a gnome or kde session or whatever > > windowing system. i don't know a solution. i suspect that it's something > > GUI dependant. > > > > chris > > Yes. That's what I want to do. I want to actually kill the shell from > which the python script was run. For example if somebody has ssh'ed > into my host, and run my python script, at the end of the script, I > want it to terminate the ssh session. Not sure if it will work but you could try getting the parent process ID os.getppid() and killing it os.kill(pid, sig) Cheers Martin -- ### Python Powered Signature I started writting this email on Thu Oct 10 15:30:07 2002
- Previous message (by thread): How to logout from a Python Program?
- Next message (by thread): How to logout from a Python Program?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list