Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
44 views

bash_logout only run command on last logout

This command is in my .bash_logout script to delete a temporary directory when I logout after running some processing: /bin/rm -rf /tmp/tmpdir/ However, I usually have more than one connection to a ...
5
votes
3answers
118 views

How to kill all open windows?

I want to close all windows appearing on my desktop. I've thought to do this through pkill, but I could only manage to kill them one at a time, which is not what I want. The end goal is to put this ...
2
votes
0answers
158 views

How to reboot/shut down gracefully in Awesome WM?

My current configuration uses kdesu shutdown -[rh] now to reboot/shut down. The entire shutdown procedure takes about 1-2 seconds. But after every boot Firefox says it was shut down prematurely, ...
4
votes
2answers
435 views

Force command to be run on logout or disconnect?

I'm logging in to a system via SSH and I'd like to be able to force a command to be run on logout, whether that's an intentional logout (exiting the shell) or because my SSH connection has ...
2
votes
2answers
1k views

Can a shell script running in a ssh continue to run if the SSH instance closes? [duplicate]

I'm trying to write a shell script that does a lengthy batch job on a remote server. I'll be running the script over SSH. The thing is, I intend to start the script in the evening and collect the ...
1
vote
0answers
244 views

Blank screen after logging out of XFCE

I have a fresh install of Arch Linux with a few packages, including XFCE. I started XFCE using startxfce4, then used XFCE to Log Out. But now all I have is a blank screen. How can I get my prompt ...
1
vote
1answer
880 views

Log off user using terminal

I am having a situation where I logged in to a RHEL 5.6 system and started VirtualBox. After closing the VirtualBox, I am having a situation where the menu bar which has the option to shutdown or lock ...
2
votes
1answer
458 views

Why won't this shutdown script work when executed by ACPID?

Based on this thread I modified my /etc/acpi/powerbtn.sh script to account for LXDE sessions: # getXuser gets the X user belonging to the display in $displaynum. # If you want the foreground X user, ...
1
vote
1answer
862 views

Run “logout script” for non-login shells

I have a .bash_logout script that I've put in the home directories of the vagrant and root users of a VM (created, as you have already guessed, with Vagrant) that I'm using for development. The ...
1
vote
1answer
233 views

vmtoolsd doesn't end after logout

There is a process 'vmtoolsd' /usr/bin/vmtoolsd -n vmusr left when a user logs out. I have to type root password to shutdown or restart because of this. How to prevent this from happening? And what ...
2
votes
0answers
277 views

Logout user with systemd

I start my window manager with systemd service units (following this tutorial). After I log in at tty1 the following gets executed in .zlogin (I'm using ZSH as a login shell): if [[ -z "$DISPLAY" ...
2
votes
1answer
3k views

How to enter/choose session after logout without password in (Linux Mint) Xfce?

I have Linux Mint 14 Xfce (4.10) and have also installed LXDE desktop, so I can choose between these sessions if I want. Normally I would set one as default and at startup I am not asked for ...
1
vote
1answer
98 views

Is there a way to execute a command when a user logs off from X?

I am trying to execute two commands one on logon and one on logoff. For the log on one, I put my script into /etc/X11/xinit/xinitrc.d and this works. I'd like it to be system-wide so I can use any ...
3
votes
1answer
6k views

What killed tty main process suddenly?

I'm doing some stress testing of a piece of software that can run shell commands. Periodically, the system logs me out during stress testing. My record of the commands that triggered this always ...
12
votes
3answers
1k views

How can I run a script during GNOME logout if I don't have admin privileges?

I want to run a script before I log out of my GNOME session, to warn myself if I have forgotten a pendrive plugged into the machine. However, all solutions I have found have not been enough for me: ...
6
votes
1answer
757 views

Meaning and commands for Ctrl+Alt+Del

In my gnome GUI desktop of Ubuntu 12.04, Ctrl+Alt+Delete will log out instead of rebooting. But I was told that Switching to a text-based virtual console and pressing Ctrl+Alt+Delete will ...
10
votes
4answers
540 views

How do I shutdown, reboot and logout the system from the command-line?

I would like to do that using the command-line, because sometimes my computer freezes and I need to force a shutdown (I know it's not good to the hardware). And: What is the difference between Halt ...
2
votes
1answer
276 views

Script to let the user cancel a shell logout

I want to write a script to display a message and possibly cancel a logout from an interactive shell. This is because I often run background jobs in some of my shells and in the spur of the moment I ...
9
votes
2answers
744 views

How can I tell a running process to disregard SIGHUP? [duplicate]

Possible Duplicate: How can I close a terminal without killing the command running in it? I have a very low-end "server" running Debian Squeeze that I occasionally ssh to. The system tends ...
2
votes
1answer
1k views

Remove shutdown/reboot options from logout window

In my CentOS5 installation in KDE, users get presented the options to terminate the session, reboot, and shutdown. Since this computer should always remain on, I'd like to remove the reboot and ...
2
votes
1answer
566 views

Randomly logging out

My Xubuntu 10.04 system logs me out seemingly at random. How can I diagnose why this is happening and correct it?
4
votes
3answers
3k views

Gnome Logout from command

How to get logout from Gnome session via command line ? Also Is there any way in GNOME to do "switch user" from command line ?
4
votes
5answers
5k views

How can I logout from a graphical environment from the command line?

Part of the beauty of trying out alpha releases of operating systems is that things will break, including things we take for granted. Today it's the turn of the logout button. So, how do you log out ...