From df13eba6ca2acd9478fd807fd23bba101459e7ad Mon Sep 17 00:00:00 2001 From: Ian Mancini Date: Sun, 26 Apr 2020 18:19:30 -0300 Subject: [PATCH] Add script to kill all wine proccesses --- wine-killall | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 wine-killall diff --git a/wine-killall b/wine-killall new file mode 100755 index 0000000..cb932b4 --- /dev/null +++ b/wine-killall @@ -0,0 +1,11 @@ +#!/bin/sh + +processes=$(pgrep -fa '\.exe' | cut -d " " -f 1-3) + +IFS=$'\n' +for process in $processes; do + pid=$(echo $process | cut -d " " -f 1) + full_name=$(echo $process | cut -d " " -f 2-3) + printf "Killing $pid -> $full_name\n" + kill -9 $pid +done