Skip to content

Instantly share code, notes, and snippets.

@joneskoo
Created November 24, 2011 14:33
Show Gist options
  • Save joneskoo/1391473 to your computer and use it in GitHub Desktop.
Save joneskoo/1391473 to your computer and use it in GitHub Desktop.
irssi killer - kill all irssis, 50 at a time
#!/bin/bash
IRSSI=$(pgrep irssi)
while [[ -n $IRSSI ]]; do
tokill=$(pgrep irssi | head -n 100)
kill $tokill
echo "Killing 100 irssis. Hit enter to kill more."
echo $(pgrep irssi|wc -l) to go
read
IRSSI=$(pgrep irssi)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment