| 1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/bash
- abs_path=$(cd `dirname $0`; pwd)
- run_mode=""
- if(($#==1))
- then
- run_mode=$1
- else
- exit -1
- fi
- if [[ "$run_mode" != "run" ]]
- then
- exit -1
- fi
- # 1. nor sample
- sample_sh="${abs_path}/nor_sample.sh"
- echo `date` "sh +x $sample_sh"
- sh +x $sample_sh &
- wait
- sleep 60s
- # 2. nor train
- train_sh="${abs_path}/nor_train.sh"
- echo `date` "sh +x $train_sh"
- sh +x $train_sh &
- wait
- sleep 60s
- # 3. nor predict
- predict_sh="${abs_path}/nor_predict.sh"
- echo `date` "sh +x $predict_sh"
- sh +x $predict_sh &
- wait
|