Cron-Job (EN)
ConceptAutomated task scheduling in Unix systems
Cron-Job
Cron-Job is a time-based job scheduler in Unix-like operating systems that enables tasks to be automatically executed at fixed times or on a recurring basis. In IoT projects, Cron-Jobs are frequently used for regular data synchronization, cleaning local databases, or performing maintenance tasks. Configuration is done through a special syntax that specifies execution times and frequency, enabling flexible automation of routine tasks in networked systems.
Architecture
flowchart TD A[Cron-Daemon] --> B{Zeitplan prüfen} B -->|Zeit erreicht| C[Ausführungskommando] B -->|Nicht erreicht| D[Warten] C --> E[Shell/Interpreter] E --> F[Ausgeführtes Skript/Programm] F --> G[Ergebnis/Log] G --> A Im Kontext
- Wird typischerweise zusammen mit Shell-Skripten, Systemdiensten und Log-Rotation verwendet
- Verwandt zu: systemd-Timer, Anacron, Batch-Verarbeitung
- Beispiel-Einsatz: Tägliche Datensicherung, regelmäßige Systemwartung, automatische Software-Updates