Last active 1516600162

A script to fix the Battle.Net Agent crashing constantly on OSX with no warning or error. The elevated instance of Agent dies suddenly, leaving the user-level version doing nothing, with the frozen download meter being the only indication to users

Steven Smith revised this gist 1516636161. Go to revision

1 file changed, 9 insertions

fixagent.sh(file created)

@@ -0,0 +1,9 @@
1 + #!/bin/bash
2 + while true; do
3 + ps aux | grep Battle.net | grep Agent | grep root >/dev/null
4 + if [[ "$?" -eq "1" ]]; then
5 + echo "Fixing Agent at "`date +%H:%M:%S`
6 + kill -9 `ps aux | grep Battle.net | grep Agent | grep $USER | awk '{print $2}'`
7 + fi
8 + sleep 5
9 + done
Newer Older