From d4add0faa0305022e3a774b6d6ca28e72cd323a4 Mon Sep 17 00:00:00 2001 From: leo <426742@gmail.com> Date: Tue, 20 Aug 2024 13:03:39 +0500 Subject: [PATCH] autocommit --- cron.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cron.sh b/cron.sh index 3ec045f..5872ee8 100644 --- a/cron.sh +++ b/cron.sh @@ -2,7 +2,8 @@ LOG_FILE="/data/logs/cron.log" mkdir -p $(dirname $LOG_FILE) -exec > $LOG_FILE 2>&1 +#exec > $LOG_FILE 2>&1 +exec > >(tee -a $LOG_FILE) 2>&1 if [ "$(id -u)" != "0" ]; then echo -e "\033[31mThis script requires superuser rights\033[0m"