Results 1 to 6 of 6

Thread: log myself out from a console

  1. #1

    Default log myself out from a console

    How can I log myself out from a console ?
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,079

    Default Re: log myself out from a console

    On Sat, 31 May 2014 01:46:02 +0000, andy77586 wrote:

    > How can I log myself out from a console ?


    exit or ctrl+d



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  3. #3

    Default Re: log myself out from a console

    I meant log out as a user that goes to the login screen.

    I want to do it by making a script.
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,254
    Blog Entries
    15

    Default Re: log myself out from a console

    On Sat 31 May 2014 02:26:01 AM CDT, andy77586 wrote:


    I meant log out as a user that goes to the login screen.

    I want to do it by making a script.


    Hi
    For GNOME shell it's;
    Code:
    gnome-session-quit --logout --force --no-prompt
    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  5. #5

    Default Re: log myself out from a console

    It does not working under KDE.
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

  6. #6

    Default Solved Re: log myself out from a console

    This worked.

    qdbus org.kde.ksmserver /KSMServer logout 0 0 0
    Thanks, Andy

    openSUSE 13.1 KDE (x86_64)
    Puppy Slacko 5.6.0
    Occasionally Windows XP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •