Useful-scripts/killwine.sh

11 lines
304 B
Bash
Raw Normal View History

2023-05-23 02:26:01 +02:00
#!/bin/bash
2023-05-23 02:40:10 +02:00
#terminate wineserver
2023-05-23 02:26:01 +02:00
wineserver -k;
#kill every exe process
for i in `ps ax|grep -E "\.exe"|awk '{print $1 }'`;do kill -9 $i;done;
2023-05-23 02:40:10 +02:00
#kill wineserver if it didn't terminate
#(might corrupt Wine's registry if wineserver was still running)
sleep 1
killall -9 wine wineserver;
2023-05-23 02:26:01 +02:00
echo 'killed wine'