Skip to main content

Zeitgesteuerte Jobs

cron = wiederholtes ausführen von Befehlen
at = Einmaliges ausführen eines Befehls

CommandFunction
crontab -eEditieren von cronjobs
crontab -lListen der cronjobs
crontab -rLöschen der gesamten (eigenen) crontabelle!
atEinmaliges ausführen eines Befehls zu gegebener Zeit
atqQueue anzeigen
atrmEinen Eintrag löschen

cron

Below are some examples of scheduling cron jobs.

ScheduleDescriptionExample
0 0Run a script at midnight every day0 0 /path/to/script.sh
_/5_Run a script every 5 minutes/5 /path/to/script.sh
0 6 1-5Run a script at 6 am from Monday to Friday0 6 1-5 /path/to/script.sh
0 0 1-7Run a script on the first 7 days of every month0 0 1-7 /path/to/script.sh
0 12 1Run a script on the first day of every month at noon0 12 1 /path/to/script.sh