Skip to content

Instantly share code, notes, and snippets.

@neuthral
Created November 11, 2018 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neuthral/c705e5c5081c6c5121a83711828b354c to your computer and use it in GitHub Desktop.
Save neuthral/c705e5c5081c6c5121a83711828b354c to your computer and use it in GitHub Desktop.
killUnity #unity #cli
#!/bin/bash
echo "killing all unit process"
process=$(ps aux | grep "Unity" | grep -v grep | awk '{print $2}')
for p in $process
do
kill -9 $p
done
echo "removing locks"
find /home/bender/workspace/unity -name UnityLockfile | xargs rm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment