How to logout from a Python Program?

Erik Max Francis max at alcyone.com
Wed Oct 9 19:37:32 EDT 2002


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()

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ When you talk to her / Talk to her
\__/ India Arie
    CSBuddy / http://www.alcyone.com/pyos/csbuddy/
 A Counter-Strike server log file monitor in Python.



More information about the Python-list mailing list