ps -ef|grep "your_command" #(查找运行该命令的进程) 如:ps -ef | grep startSpiderPic 结果如下:
ubuntu 1462 1 0 07:35 ? 00:00:00 /bin/bash /home/ubuntu/myscript/startSpiderPic.sh
ubuntu 1714 1 0 07:39 ? 00:00:00 /bin/bash /home/ubuntu/myscript/startSpiderPic.sh
ubuntu 51262 50966 0 16:46 pts/0 00:00:00 grep --color=auto startSpiderPic