如果两个进程未运行,我如何检查“if”条件?
我用过
if [ `pgrep <process name>`] does not work with ot without square brackets
using ps -aux |grep <process name> in if condition does not work, since every time
grep <process name>
is up and it will always pass
任何人都有任何好的建议,我可以检查是否只需要两个进程“未”运行
谢谢