这是因为
ps aux |grep SOMETHING还找到了
grepSOMETHING进程,因为SOMETHING匹配。执行完grep后,因此找不到它。
添加一行:
ps aux | grep -v grep | grep YOURscript
其中-v表示排除。更多内容
man grep。

这是因为
ps aux |grep SOMETHING还找到了
grepSOMETHING进程,因为SOMETHING匹配。执行完grep后,因此找不到它。
添加一行:
ps aux | grep -v grep | grep YOURscript
其中-v表示排除。更多内容
man grep。