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