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

相关文章:

  • 2021-12-27
  • 2021-07-30
  • 2021-10-20
  • 2022-12-23
  • 2022-01-09
猜你喜欢
  • 2021-07-28
  • 2021-04-21
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
相关资源
相似解决方案