1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #!/bin/bash
- source ~/.bash_profile
- source ~/.bashrc
- conda activate tf2
- cd /data/OffLineRec
- nowday=`date +"%Y%m%d" -d -0days`
- last7day=`date +"%Y%m%d" -d -15days`
- echo ${nowday}
- echo ${last7day}
- mkdir -p ./data/
- mkdir -p ./logs/
- nowhour=`date +"%Y%m%d%H" -d -0days`
- nowstart=$nowday'000000'
- nowhour=${nowhour}'0000'
- echo $nowhour
- echo ${nowstart}
- echo ${last7day}
-
-
-
-
- python extract_share_log.py ${last7day} ${nowday}
- if [ $? -ne 0 ];
- then
- msg = "[ERROR] simrecall extract_share_log"
-
- echo "[ERROR] echo 'extract_share_log"
- exit 255
- fi
- python filter_video.py ./data/user_item_share_${nowday} ./data/user_item_share_filter_${nowday}
- exit
- if [ $? -ne 0 ];
- then
- msg = "[ERROR] simrecall calI2I.py"
-
- echo $msg
- exit -1
- fi
- if [ $? -ne 0 ];
- then
- msg = "[ERROR] simhot recall import_redist.py"
- sh sendmsg.sh $nowday $msg
- echo $msg
- exit -1
- fi
- echo 'finish sorted'
|