0
votes
1answer
33 views

How to let Linux Python application handle termination on user logout correctly?

I have written a Linux GUI application in Python that needs to do some cleanup tasks before being terminated when the user logs out. Unfortunately it seems, that on logout, all applications are ...
1
vote
1answer
196 views

How to log out current user?

I'm very very new to the linux world. I have just installed Ubuntu 12.04 and I was wondering how to log out my user using the terminal. I searched the web and all the sites say that I should run the ...
1
vote
0answers
383 views

Is it possible to run an interactive script before shutdown Linux in a GNOME session?

I wrote some utility interactive scripts and want them run before shutdown. For a terminal-login session, I just add some entry in ~/.bash_logout, my login shell is bash BTW, which works. However, I ...
1
vote
1answer
2k views

Gnome3 session logout

With gnome 2 there was the possibility to logout from a session by executing gnome-session-save --force-logout Unfortunately this gnome-session-save doesn't exist in Gnome3. Is there a different ...
4
votes
1answer
451 views

How to lock a RHEL 5.3 workstation

I get option to SUSPEND/HIBERNATE or reboot/shutdown. Isn't there something similar to locking as in windows. I don't want to log out each time I want a break(think bathroom, drink). I would expect ...
0
votes
1answer
516 views

If I log out of a linux ssh shell, is there any way to jump back into a process that was running? [duplicate]

Possible Duplicate: Linux process to background - relogin - how to bring process back to foreground? Okay, kind of a weird question but let's say I'm running a long-running batch script in ...
5
votes
4answers
13k views

Run Script on logout/ shutdown ubuntu

I want to run some commands every time a user of an ubuntu 9.10 machine logs out or shuts down. What is the best way to do this? Every user uses gnome if that helps.