Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


lpi1:anacron

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
lpi1:anacron [2015/08/18 07:24] – angelegt ingo_wichmannlpi1:anacron [2015/08/18 07:45] (aktuell) – ingo_wichmann
Zeile 1: Zeile 1:
-  anacron -f     Forces execution of all jobs, ignoring any timestamps. 
-  anacron -T     Anacrontab testing. Tests the /etc/anacrontab configuration file for validity. 
  
 ''/etc/anacrontab'' : ''/etc/anacrontab'' :
 <file> <file>
-       # environment variables +... 
-       SHELL=/bin/sh +RANDOM_DELAY=10 
-       PATH=/sbin:/bin:/usr/sbin:/usr/bin +... 
-       MAILTO=root +START_HOURS_RANGE=3-22 
-       RANDOM_DELAY=30 +... 
-       # Anacron jobs will start between 6am and 8am. +#period in days   delay in minutes   job-identifier command 
-       START_HOURS_RANGE=6-8 +1                 2                  testjob            date >> /tmp/date
-       # delay will be 5 minutes + RANDOM_DELAY for cron.daily +
-       1         5    cron.daily          nice run-parts /etc/cron.daily +
-       7         0    cron.weekly         nice run-parts /etc/cron.weekly +
-       @monthly  0    cron.monthly        nice run-parts /etc/cron.monthly+
 </file> </file>
 +
 +Syntax überprüfen:
 +  anacron -T
 +
 +testjob sofort ausführen:
 +  anacron -df testjob
 +
lpi1/anacron.1439882656.txt.gz · Zuletzt geändert: 2015/08/18 07:24 von ingo_wichmann