Linux.com

Author Message
Joined: Oct 23, 2008
Posts: 10
Other Topics
Posted Oct 27, 2008 at 6:15:06 PM
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
Back to top Profile Email Website
proopnarine

Joined Apr 03, 2008
Posts: 590
Location:San Francisco

Other Topics
Posted: Oct 28, 2008 2:57:58 AM
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.

Take the red pill

Climate Change Blog

Food Weblog

Back to top Profile Email Website
khriz
Joined Oct 23, 2008
Posts: 10

Other Topics
Posted: Oct 28, 2008 1:20:19 PM
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..
Back to top Profile Email Website
khriz
Joined Oct 23, 2008
Posts: 10

Other Topics
Posted: Oct 28, 2008 5:57:41 PM
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..
Back to top Profile Email Website
proopnarine

Joined Apr 03, 2008
Posts: 590
Location:San Francisco

Other Topics
Posted: Oct 29, 2008 4:04:46 AM
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.

Take the red pill

Climate Change Blog

Food Weblog

Back to top Profile Email Website
ed k
Joined Nov 08, 2008
Posts: 1

Other Topics
Posted: Nov 08, 2008 4:43:46 PM
Subject: logout command line
you can use gnome-session-save (thats the "official" way).
Back to top Profile Email Website
PerlCoder
Joined Jun 30, 2008
Posts: 148

Other Topics
Posted: Nov 10, 2008 8:08:41 AM
Subject: logout command line
Is this what you want? http://ubuntuforums.org/showthread.php?t=203240

PerlCoder (http://indicium.us)

Back to top Profile Email Website
jimgoodall
Joined Nov 18, 2008
Posts: 1

Other Topics
Posted: Nov 18, 2008 2:25:43 PM
Subject: 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
Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya