| 123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/bash
- run_mode=""
- if(($#==1))
- then
- run_mode=$1
- else
- exit -1
- fi
- if [[ "$run_mode" != "run" ]]
- then
- exit -1
- fi
- dd=$(date +%Y%m%d)
- # 0. abs path
- abs_path=$(cd `dirname $0`; pwd)
- log_file="${abs_path}/logs/${dd}.log"
- # 1. make data
- make_sh="${abs_path}/make_data.sh"
- echo `date` "sh +x $make_sh >> $log_file"
- sh +x $make_sh >> $log_file 2>&1 &
- wait
- sleep 30s
- # 2. rov batch
- rov_batch_sh="${abs_path}/rov/sample/scripts/rov_batch.sh"
- echo `date` "sh +x $rov_batch_sh run"
- sh +x $rov_batch_sh run >> $log_file 2>&1 &
- wait
|