gpt4 book ai didi

linux - CentOS 中的替代命令

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:08:42 29 4
gpt4 key购买 nike

以下命令在 Ubuntu工作

iv2user@ubuntu-serverA1:~$ ps ax | grep -v grep | grep -v $0 | grep script_master_01.py
20656 pts/2 S+ 0:00 python script_master_01.py

我在哪里运行 py 文件,如 python script_master_01.py

但是在 CentOS 6.5 上命令不工作

[iv2user@dev3 ~]$ ps ax | grep -v grep | grep -v $0 | grep cqc_script_master_76.py
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.

你能帮我吗,因为我没有 CentOS 的相应命令。

最佳答案

您也可以尝试以下方法,因为它会清除您不想要的其他结果:

ps ax | grep cqc_script_master_76.p[y]

关于linux - CentOS 中的替代命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32649788/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com