Last active
August 29, 2015 13:56
-
-
Save darrend/9146876 to your computer and use it in GitHub Desktop.
kill unattached mosh sessions
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
ps -e | grep "mosh-server" | grep -v "^$PPID" | awk '{print $1}' | xargs -r --verbose kill -TERM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://superuser.com/questions/632979/if-i-know-the-pid-number-of-a-process-how-can-iget-its-name