#!/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) # 0. abs path abs_path=$(cd `dirname $0`; pwd) log_file="${abs_path}/../../logs/nor_${dd}.log" # 1. pipline pip_sh="${abs_path}/nor_pipline.sh" echo `date` "sh +x $pip_sh run" sh +x $pip_sh run >> $log_file 2>&1 &