From 3370231a63955e4fed22ab7d62a347b2b6a56ae8 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Mon, 25 Sep 2023 23:01:12 +0200 Subject: [PATCH] showing actual Time in Cronjob Script --- cronjobs.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cronjobs.sh b/cronjobs.sh index b4a9c8e..477034e 100644 --- a/cronjobs.sh +++ b/cronjobs.sh @@ -1,6 +1,13 @@ #!/bin/sh echo "Starting Script $0" +# Get the current date and time in a specific format +formatted_time=$(date +"%Y-%m-%d %H:%M:%S") + +# Echo the formatted time +echo "Current time: $formatted_time" + + cd domains cd zefix.silias.ch cd public_html