From fa4978389cd95ee958d43bd2905ab1bbd2e37f12 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sun, 22 Aug 2021 18:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtask=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"