From 1060fc7476e37ff9ad078747fdbc2ee63bb2a85a Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 6 Apr 2022 12:18:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B6=E5=8F=91=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/task.sh b/shell/task.sh index 2ede061d..65b96459 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -193,13 +193,13 @@ run_concurrent() { fi for i in "${!array[@]}"; do export ${env_param}=${array[i]} - single_log_path="$log_dir/${single_log_time}_$((i + 1)).log" + single_log_path="$dir_log/$log_dir/${single_log_time}_$((i + 1)).log" timeout -k 10s $command_timeout_time $which_program $file_param &>$single_log_path & done wait for i in "${!array[@]}"; do - single_log_path="$log_dir/${single_log_time}_$((i + 1)).log" + single_log_path="$dir_log/$log_dir/${single_log_time}_$((i + 1)).log" eval cat $single_log_path $cmd [[ -f $single_log_path ]] && rm -f $single_log_path done