LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Command to log a user out? Or restart X within a script? (http://www.linuxquestions.org/questions/linux-desktop-74/command-to-log-a-user-out-or-restart-x-within-a-script-565227/)

BogusTrumper 06-28-2007 07:35 PM

Command to log a user out? Or restart X within a script?
 
I've got a system that needs to work as a thin client. I've got it booting up into a remote desktop session, and I'd like it to log the user out of the local machine once the remote session closes. I can't seem to find a way to do that in my script. Has anybody ever made this work?

Right now the machine is running KDE on Fedora Core 5. I'll be running this script in my .kde/Autostart folder, so if it works this could be converted into an EXTREMELY geeky April Fool's joke for next year.

farslayer 06-29-2007 02:05 PM

pkill -KILL -u username

That might do what you are looking for.. username being the user you wish to log out. you can get a list of logged in users using the who command


All times are GMT -5. The time now is 08:16 PM.