Archived
Updated script and more stuff
This commit is contained in:
1 parent
42d7473046
commit
81af6301ab
26 files changed
+2373
-10
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# kill all instances of an application
|
||||
[[ -z "$@" ]] && exit
|
||||
|
||||
application_name="$(echo "$1" | awk '{print tolower($0)}')"
|
||||
ps aux | grep "$application_name" | grep -v 'grep' | awk '{print $2}' | while read process; do
|
||||
kill -9 "$process"
|
||||
done
|
||||
Reference in new issue
Block a user