From 63720dafea085edc348f09cada662d8bb19f8b34 Mon Sep 17 00:00:00 2001 From: Ratatoskr Date: Tue, 5 Dec 2023 18:00:34 +0100 Subject: [PATCH] Add execution timestamp and echo in A72_alarm_getter.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In this commit, an echo statement is added to display the execution timestamp in the A72_alarm_getter.sh script. The timestamp is printed with the command 'echo 'Ausgeführt um: ''. Additionally, the script now contains a function called delete_expired_at_jobs to check and delete expired 'at' jobs. The current time is obtained using the 'date' command and stored in the variable current_time. --- A72_alarm_getter.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/A72_alarm_getter.sh b/A72_alarm_getter.sh index 2c49beb..581563f 100755 --- a/A72_alarm_getter.sh +++ b/A72_alarm_getter.sh @@ -8,6 +8,8 @@ # dann das Einschalten der Lichter. # mit dem "at" Befehl. +echo "Ausgeführt um: $date" + # Überprüfen, ob alte "at"-Aufträge abgelaufen sind und sie löschen delete_expired_at_jobs() { current_time=$(date +"%Y-%m-%d %H:%M:%S")