Ein paar Verbesserungen - haben aber nix gebracht
This commit is contained in:
@@ -7,13 +7,13 @@ cd /app
|
||||
|
||||
# Protokollfunktion mit Zeitstempel
|
||||
log() {
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') $1" >> logs/log
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') $1" >> logs/cron.log
|
||||
}
|
||||
|
||||
log ">>> Starte Wetterprüfung"
|
||||
|
||||
# Python-Skript ausführen und Ergebnis loggen
|
||||
python main.py >> logs/log 2>&1
|
||||
/usr/local/bin/python main.py >> logs/cron.log 2>&1
|
||||
|
||||
log ">>> Wetterprüfung abgeschlossen"
|
||||
log "------------------------------------"
|
||||
Reference in New Issue
Block a user