showing actual Time in Cronjob Script
This commit is contained in:
parent
9c74f58bce
commit
3370231a63
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue