xshell脚本监控进程
1、 xshell.sh
#!/bin/bash while true do sleep 10; date; ps -ef |grep 'snhs'; done
2、 xshell_wr.sh
#!/bin/bash sh xshell.sh >>logfile 2>&1 &
3、执行 sh xshell_wr.sh

浙公网安备 33010602011771号