showing actual Time in Cronjob Script

This commit is contained in:
schrom01 2023-09-25 23:01:12 +02:00
parent 9c74f58bce
commit 3370231a63
1 changed files with 7 additions and 0 deletions

View File

@ -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