nor_pipline.sh 506 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. abs_path=$(cd `dirname $0`; pwd)
  3. run_mode=""
  4. if(($#==1))
  5. then
  6. run_mode=$1
  7. else
  8. exit -1
  9. fi
  10. if [[ "$run_mode" != "run" ]]
  11. then
  12. exit -1
  13. fi
  14. # 1. nor sample
  15. sample_sh="${abs_path}/nor_sample.sh"
  16. echo `date` "sh +x $sample_sh"
  17. sh +x $sample_sh &
  18. wait
  19. sleep 60s
  20. # 2. nor train
  21. train_sh="${abs_path}/nor_train.sh"
  22. echo `date` "sh +x $train_sh"
  23. sh +x $train_sh &
  24. wait
  25. sleep 60s
  26. # 3. nor predict
  27. predict_sh="${abs_path}/nor_predict.sh"
  28. echo `date` "sh +x $predict_sh"
  29. sh +x $predict_sh &
  30. wait