我想通过killall -9 python杀死python进程,直接在命令行中运行这条命令,或者在python脚本中通过“os.system('killall -9 python')”可以成功杀死python进程,但是为什么放到.sh脚本中这条命令就杀不死python进程呢?
如下:
killall -9 python
echo 'done'
大家讲道理2017-04-25 09:03:26
Um... I just discovered that adding ";" after killall -9 python is enough. I don't know how this works