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.
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 01:22 PM.|