#!/bin/bash run_mode="" if(($#==1)) then run_mode=$1 else exit -1 fi if [[ "$run_mode" != "run" ]] then exit -1 fi dd=$(date +%Y%m%d) start_date=$(date +%Y%m%d -d "-1 $days day") end_date=$start_date start_hour=17 end_hour=23 # 0. abs path abs_path=$(cd `dirname $0`; pwd) log_file="${abs_path}/logs/${dd}_t1.log" # 1. make data table=dwd_recsys_alg_sample_all_20250905 make_sh="${abs_path}/make_data.sh" echo `date` "sh +x $make_sh $start_date $end_date $start_hour $end_hour $table" >> $log_file sh +x $make_sh $start_date $end_date $start_hour $end_hour $table >> $log_file 2>&1 & wait sleep 30s # 2. rov batch rov_batch_sh="${abs_path}/rov/sample/scripts/rov_batch_t1.sh" echo `date` "sh +x $rov_batch_sh run" >> $log_file sh +x $rov_batch_sh run >> $log_file 2>&1 & wait