可以在性能测试过程中。定期检测startAgent和nmon的状态

#!/bin/sh
while true
do
        pnmon=`ps aux | grep nmon | grep -v grep`;

        if [ "$pnmon" == "" ]; then
                sleep 1;
                echo "no nmon process";
                echo "正在启动中";
                nmon -f -s3 -c300 -m /root/qumf/;
        else
                echo "process exsits";
                break;
        fi
done

linux实现自动检测进程是否存活的脚本

linux实现自动检测进程是否存活的脚本

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-07-25
猜你喜欢
  • 2022-02-22
  • 2021-09-06
  • 2022-03-13
  • 2022-02-04
  • 2022-02-20
  • 2021-06-20
  • 2021-08-25
相关资源
相似解决方案