运行执行文件
启动
/root/main
为可执行文件
nohup /root/main > /dev/null 2>&1 &
杀死
ps aux | grep main | grep -v grep | awk '{print $1}' | xargs kill -9
or
ps aux | grep main | head -n 1 | awk '{print $1}' | xargs kill -9
or
kill -9 $(ps aux | grep '[p]ython csp_build.py' | awk '{print $2}')