V 1.0.0 - erste Version
This commit is contained in:
19
run_citysensor.sh
Executable file
19
run_citysensor.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Aktiviere virtuelle Umgebung
|
||||
source /home/rxf/Projekte/citysensor/.venv/bin/activate
|
||||
|
||||
cd /home/rxf/Projekte/citysensor
|
||||
|
||||
# Protokollfunktion mit Zeitstempel
|
||||
log() {
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') $1" >> logs/cron.log
|
||||
}
|
||||
|
||||
log ">>> Starte Citysensor-Prüfung"
|
||||
|
||||
# Python-Skript ausführen und Ergebnis loggen
|
||||
python main.py >> logs/cron.log 2>&1
|
||||
|
||||
log ">>> Citysensor-Püfung abgeschlossen"
|
||||
log "------------------------------------"
|
||||
Reference in New Issue
Block a user