Tuesday, March 15, 2016

Kill All Wine Processes (Command Line)

Sometimes Wine programs crash and leave some processes running making it hard to restart them. Here's a nice command line program that kills ALL Wine processes and reports what it killed.  This command lets me just restart whatever Wine program crashed without doing a reboot of my computer.

wineserver -k; killall -9 wine wineserver; for i in `ps ax|egrep "*\.exe"|grep -v 'egrep'|awk '{print $1 }'`;do kill -9 $i;done

I made this command into a Bash Script so I could use it without having to retype or copy/paste it every time I want to use it.

Here's the video where I found this command and it tells you how to make this command into a Bash Script.


No comments: