monitor.sh 150 B

1234567891011
  1. #!/bin/bash
  2. while true ;do
  3. num=`ps -ef|grep Cold_server|grep -v grep|wc -l`
  4. if [ $num -lt 1 ];then
  5. run.sh
  6. fi
  7. sleep 10
  8. done