diff options
Diffstat (limited to 'dotfiles/system/.local/bin/clobberall')
| -rwxr-xr-x | dotfiles/system/.local/bin/clobberall | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/dotfiles/system/.local/bin/clobberall b/dotfiles/system/.local/bin/clobberall deleted file mode 100755 index a570d4e..0000000 --- a/dotfiles/system/.local/bin/clobberall +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash -# clobberall -# Repeatedly kills all processes with the given name until none remain -# Usage: clobberall <process_name> -# -# Craig Jennings <c@cjennings.net> - -if [ $# -eq 0 ]; then - echo "Usage: clobberall <process_name>" - echo "Example: clobberall emacs" - exit 1 -fi - -process_name="$1" - -while sudo killall "$process_name" 2>/dev/null; do - sleep 0.1 -done - -echo "All '$process_name' processes terminated." |
