bash_near_real_job.sh 729 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # 判断脚本执行路径是否存在,如果不存在则需要设置
  3. if [ -z $HUOJU_FTY_PATH ];
  4. then
  5. echo "not found"
  6. export HUOJU_FTY_PATH=/root/py_script/
  7. else
  8. echo "found"
  9. fi
  10. echo $HUOJU_FTY_PATH
  11. ###############################操作################################
  12. #电视剧相似剧计算
  13. echo "tv_real_recom_fix"
  14. python ${HUOJU_FTY_PATH}tv_real_recom_fix.py $1
  15. if [ $? -ne 0 ];
  16. then
  17. content="tv_real_recom_fix"
  18. echo $content
  19. exit 1
  20. fi
  21. #电视剧收视指数预测
  22. echo "online_ad_tv_sr_pre"
  23. python ${HUOJU_FTY_PATH}online_ad_tv_sr_pre.py $1
  24. if [ $? -ne 0 ];
  25. then
  26. content="online_ad_tv_sr_pre"
  27. echo $content
  28. exit 1
  29. fi
  30. echo "脚本执行完毕"