showing actual Time in Cronjob Script
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo "Starting Script $0"
|
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 domains
|
||||||
cd zefix.silias.ch
|
cd zefix.silias.ch
|
||||||
cd public_html
|
cd public_html
|
||||||
|
|||||||
Reference in New Issue
Block a user