Created
September 13, 2011 15:04
-
-
Save pen/1214037 to your computer and use it in GitHub Desktop.
kickout a user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
LANG=C who -u | awk "\$1 == \"$1\" { print \$7 }" | xargs -r kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment