How to logout from a Python Program?
Wayne Pierce
wayne at mishre.com
Thu Oct 10 14:00:17 EDT 2002
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:
>
> > 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
What about os.system("logout")?
Wayne
--
www.mishre.com
More information about the Python-list
mailing list