diff --git a/shell/task.sh b/shell/task.sh index d08f4b96..52555c30 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -93,7 +93,7 @@ run_normal() { local id=$(cat $list_crontab_user | grep -E "$cmd_task $first_param" | perl -pe "s|.*ID=(.*) $cmd_task $first_param\.*|\1|" | head -1 | awk -F " " '{print $1}') local begin_time=$(date '+%Y-%m-%d %H:%M:%S') - eval echo -e "\#\# 开始执行... $begin_time\n" $cmd + eval echo -e "\#\# 开始执行... $begin_time\\\n" $cmd eval cat $task_error_log_path $cmd [[ $id ]] && update_cron "\"$id\"" "0" "$$" "$log_path" @@ -129,7 +129,7 @@ run_concurrent() { local id=$(cat $list_crontab_user | grep -E "$cmd_task $first_param" | perl -pe "s|.*ID=(.*) $cmd_task $first_param\.*|\1|" | head -1 | awk -F " " '{print $1}') local begin_time=$(date '+%Y-%m-%d %H:%M:%S') - eval echo -e "\#\# 开始执行... $begin_time\n" $cmd + eval echo -e "\#\# 开始执行... $begin_time\\\n" $cmd eval cat $task_error_log_path $cmd [[ $id ]] && update_cron "\"$id\"" "0" "$$" "$log_path" eval . $file_task_before $cmd 2>&1 @@ -169,7 +169,7 @@ run_else() { local id=$(cat $list_crontab_user | grep -E "$cmd_task $first_param" | perl -pe "s|.*ID=(.*) $cmd_task $first_param\.*|\1|" | head -1 | awk -F " " '{print $1}') local begin_time=$(date '+%Y-%m-%d %H:%M:%S') - eval echo -e "\#\# 开始执行... $begin_time\n" $cmd + eval echo -e "\#\# 开始执行... $begin_time\\\n" $cmd eval cat $task_error_log_path $cmd [[ $id ]] && update_cron "\"$id\"" "0" "$$" "$log_path"