in8snotes

This portion of my site is powered by Blosxom. Blosxom is a perl script whose functionality here is extended through several plugin scripts in order to dynamically assemble a multitude of separate plain text files stored in a directory tree on the server into a cohesive, dated and RSS enabled weblog. Now in daily (r)sync with the directories on Nate's Powerbook.



February
Sun Mon Tue Wed Thu Fri Sat
         
23
 

2008
Months
Feb

blosxom
categorytree plugin
blox plugin
calendar plugin
find plugin
breadcrumbs plugin



       
Return to in8sworld.net


Log a user out remotely

Over an ssh connection, you can use the following shell command to list the processes of a user in order so that the lowest number is at the bottom (so you see it when the script finishes). This is probably the x-session manager or initial bash login. Kill that process to kill the user session.

ps aux | grep username | awk '{print $2 " " $11}' | sort -gr

Last saved: 02/23/2008
Links: /computers/unix / killusersession.txt