How to logout from a Python Program?

Saqib Ali syed_saqib_ali at
Thu Oct 10 01:08:47 CEST 2002

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?


More information about the Python-list mailing list