How to logout from a Python Program?

Chris Liechti cliechti at gmx.net
Wed Oct 9 20:21:33 EDT 2002


Erik Max Francis <max at alcyone.com> wrote in 
news:3DA4BDBC.27FA2B20 at alcyone.com:

> Saqib Ali wrote:
> 
>> How can I force a logout from a python program?
>> 
>> I tried os.system("exit") but this only terminates the shell within
>> which my application is running (which starts with the #! on the first
>> line). Is it possible for me to logout "all the way" in python?
> 
>      sys.exit()
> 

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
-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list