|
Author |
Message |
|
|
Posted : Mon, 27 October 2008 18:15:06
Subject :
logout command line
Hi
Does anybody know how can I end with my session (gnome in this case) with command line??
Something like logout, with logout doesn't work
|
|
|
|
proopnarine
|
Posted : Tue, 28 October 2008 02:57:58
Subject :
logout command line
You mean end your X session by command line? You can use the very old-fashioned method, and type ctl-alt-backspace. You should, of course, first make sure that no programs are actively running.
|
|
khriz
|
Posted : Tue, 28 October 2008 13:20:19
Subject :
logout command line
Thanks, but what I really need is by comman line. I mean, when I login to my session in the startup a program is running, and when aI end it, it has to be logout when I quit. I hope this is clear now..
|
|
khriz
|
Posted : Tue, 28 October 2008 17:57:41
Subject :
logout command line
I think I'll solve my issue with: sudo /usr/local/bin/killall /usr/bin/Xorg, unless you have anythig else..
|
|
proopnarine
|
Posted : Wed, 29 October 2008 04:04:46
Subject :
logout command line
I'm not sure why you would do this. Some folks have trepidation about the key combo., but it is a pretty handy and legitimate way to kill the X server. If you really want to do it commandline, then log into a tty:
ctrl-alt-F1
find your X process:
ps -A
and then issue the kill command. This is a rather ugly thing to do though. And, if you're running in init 5, then the X server will most likely restart immediately after you've killed it, though you will no longer be logged in.
|
|
ed k
|
Posted : Sat, 08 November 2008 16:43:46
Subject :
Re: logout command line
you can use gnome-session-save (thats the "official" way).
|
|
PerlCoder
|
Posted : Mon, 10 November 2008 08:08:41
Subject :
logout command line
Is this what you want?
http://ubuntuforums.org/showthread.php?t=203240
|
|
jimgoodall
|
Posted : Tue, 18 November 2008 14:25:43
Subject :
Re: logout command line
ed k's suggestion would be your best bet -
gnome-session-save --kill --silent
Will save your gnome session and log your session out without further interaction
Cheers
Jim
|