Created
May 13, 2019 08:57
-
-
Save ialex32x/8af93d26d2a5ead0d618408dcbdbb4e6 to your computer and use it in GitHub Desktop.
sh 查找所有指定名字的进程并杀死
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WORKSPACE=$(cd `dirname $0`;pwd) | |
EXE=./bin/sgless | |
LOGPATH=./log | |
echo killing old | |
ps aux | grep $EXE | awk '{print $2}' | xargs kill -9 | |
sleep 1s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment