long_sonar.sh 367 B

12345678910
  1. #!/bin/bash
  2. #获取进程数量,从服务器3个,主服务器3个
  3. process_5=`ps -ef | grep "count_fish_jh5_v1_bushu.py" | grep -v grep | wc -l`
  4. if [[ $process_5 -eq 0 ]]; then
  5. cd /home/sencott/sonar/sonar_process/
  6. nohup /home/sencott/anaconda3/bin/python count_fish_jh5_v1_bushu.py > /home/sencott/sonar/sonar_process/log/count_fish.log 2>&1 &
  7. fi