12345678910111213141516171819202122232425262728293031323334 |
- #!/bin/bash
- # 判断脚本执行路径是否存在,如果不存在则需要设置
- if [ -z $HUOJU_FTY_PATH ];
- then
- echo "not found"
- export HUOJU_FTY_PATH=/root/py_script/
- else
- echo "found"
- fi
- echo $HUOJU_FTY_PATH
- ###############################操作################################
- #电视剧相似剧计算
- echo "tv_real_recom_fix"
- python ${HUOJU_FTY_PATH}tv_real_recom_fix.py $1
- if [ $? -ne 0 ];
- then
- content="tv_real_recom_fix"
- echo $content
- exit 1
- fi
- #电视剧收视指数预测
- echo "online_ad_tv_sr_pre"
- python ${HUOJU_FTY_PATH}online_ad_tv_sr_pre.py $1
- if [ $? -ne 0 ];
- then
- content="online_ad_tv_sr_pre"
- echo $content
- exit 1
- fi
- echo "脚本执行完毕"
|