Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个执行 2 个 python 脚本的 cron。如果进程正在运行,我如何使用“ps”命令查看?
我的脚本名称是:
json1.py json2.py
ps aux | grep json应该这样做,或者只是pgrep -lf json。
ps aux | grep json
pgrep -lf json