/etc/crontab: system-wide crontab#Unlike any other crontab you don't have to run the `crontab'
#command to install the new version when you edit this file
#and files in /etc/cron.d. These files also have username fields,
#that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""
00 05 * * * Benutzer Befehl
# | | | | |
# | | | | +---- Wochentag (0-7) (Sonntag =0 oder =7)
# | | | +------ Monat (1-12)
# | | +-------- Tag (1-31)
# | +---------- Stunde (0-23)
# +------------ Minute (0-59)
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#Zeitabgleich -> benoetigt [apt-get install ntpdate]
#0 8 * * * root ntpdate -s pool.ntp.org #Zeitabgleich (Taeglich um 08:00 Uhr)
#IPC
#0 4 * * 5 root /var/emu/script/ipc-backup.sh full l 30 #Backup - Full (Woechentlich um 04:00, Freitag)
0 2 * * * root /var/emu/script/ipc-backup.sh conf l 14 #Backup - Konfiguration (Taeglich um 02:00)
0 6 * * * root /var/emu/script/ipc-set.sh #Rechte setzen (Taeglich um 06:00)
#CCcam
1 * * * * root /var/emu/script/cccam-watchdog.sh #CCcam - Teste ob CCcam laeuft (jede Minute)
#30 4 * * * root /var/emu/script/cccam restart #CCcam - EMU Neustart (Taeglich um 04:30)
* 5 * * * root /var/emu/script/cccam-cfgnl.sh #CCcam - Lade neue Konfiguration (Taeglich um 05:00)
#CCcamInfoPHP (Update,Ping,Online)
1 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_update.php?p=0 #CCcamInfoPHP - Update jede Minute
58 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_ping.php?p=0 #CCcamInfoPHP - PING jede Stunde
59 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_online.php?p=0 #CCcamInfoPHP - Online jede Stunde
#Oscam
*/1 * * * * root /var/emu/script/oscam-watchdog.sh #OSCam - Teste ob OSCam laeuft (alle 5 Minuten)
#29 4 * * * root /var/emu/script/oscam restart #OScam - EMU Neustart (Taeglich um 04:29)
#NewCS
#*/5 * * * * root /var/emu/script/newcs-watchdog.sh #NewCS - Teste ob NewCS laeuft (alle 5 Minuten)
#DynDNS Static Update -> benoetigt [apt-get install ddclient]
#6 6 * * 1 root /usr/sbin/ddclient -force > /var/log/ipc/dyndns_update.log #Static DynDNS Update (Woechentlich um 06:06, Sonntag)
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""
# * * * * * Benutzer Befehl
# | | | | |
# | | | | +---- Wochentag (0-7) (Sonntag =0 oder =7)
# | | | +------ Monat (1-12)
# | | +-------- Tag (1-31)
# | +---------- Stunde (0-23)
# +------------ Minute (0-59)
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#Zeitabgleich -> benoetigt [apt-get install ntpdate]
#0 8 * * * root ntpdate -s pool.ntp.org #Zeitabgleich (Taeglich um 08:00 Uhr)
#IPC
#0 4 * * 5 root /var/emu/script/ipc-backup.sh full l 30 #Backup - Full (Woechentlich um 04:00, Freitag)
0 2 * * * root /var/emu/script/ipc-backup.sh conf l 14 #Backup - Konfiguration (Taeglich um 02:00)
0 6 * * * root /var/emu/script/ipc-set.sh #Rechte setzen (Taeglich um 06:00)
#CCcam
* * * * * root /var/emu/script/cccam-watchdog.sh #CCcam - Teste ob CCcam laeuft (jede Minute)
#30 4 * * * root /var/emu/script/cccam restart #CCcam - EMU Neustart (Taeglich um 04:30)
* 5 * * * root /var/emu/script/cccam-cfgnl.sh #CCcam - Lade neue Konfiguration (Taeglich um 05:00)
#CCcamInfoPHP (Update,Ping,Online)
#* * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_update.php?p=0 #CCcamInfoPHP - Update jede Minute
58 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_ping.php?p=0 #CCcamInfoPHP - PING jede Stunde
59 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_online.php?p=0 #CCcamInfoPHP - Online jede Stunde
#Oscam
#*/5 * * * * root /var/emu/script/oscam-watchdog.sh #OSCam - Teste ob OSCam laeuft (alle 5 Minuten)
#29 4 * * * root /var/emu/script/oscam restart #OScam - EMU Neustart (Taeglich um 04:29)
#NewCS
#*/5 * * * * root /var/emu/script/newcs-watchdog.sh #NewCS - Teste ob NewCS laeuft (alle 5 Minuten)
#DynDNS Static Update -> benoetigt [apt-get install ddclient]
#6 6 * * 1 root /usr/sbin/ddclient -force > /var/log/ipc/dyndns_update.log #Static DynDNS Update (Woechentlich um 06:06, Sonntag)
30 5 * * * root /usr/sbin/reboot #Reboot (Taeglich um 05:30)
Das würde dann so aussehen:
Code:30 5 * * * root /usr/sbin/reboot #Reboot (Taeglich um 05:30)
Aber jetzt mal ne andere Frage, wofür willst du den täglich Neustarten?
ähm 1. gewöhn dir bitte an die meldungen auch zu beachten - da steht die ganze zeit WARUM er das nicht beachtet
Error: bad minute; while reading /etc/crontab
ERROR (Syntax error, this crontab file will be ignored)
und 2. was soll die zeile " 00 05 * * * Benutzer Befehl " bewirken? die ist so nicht korrekt und auch nicht original, da stgeht normal ne # davor weil das nen kommentar is, was da nur steht um solchen wie dir die korrekte syntax dieser datei zu verdeutlichen...
dein problem ist die aller erste zeile in dem file:
/etc/crontab: system-wide crontab#Unlike any other crontab you don't have to run the `crontab'
auch da muss ein # davor
IPC's original /etc/crontab:
Code:# /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin MAILTO="" # * * * * * Benutzer Befehl # | | | | | # | | | | +---- Wochentag (0-7) (Sonntag =0 oder =7) # | | | +------ Monat (1-12) # | | +-------- Tag (1-31) # | +---------- Stunde (0-23) # +------------ Minute (0-59) # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) #Zeitabgleich -> benoetigt [apt-get install ntpdate] #0 8 * * * root ntpdate -s pool.ntp.org #Zeitabgleich (Taeglich um 08:00 Uhr) #IPC #0 4 * * 5 root /var/emu/script/ipc-backup.sh full l 30 #Backup - Full (Woechentlich um 04:00, Freitag) 0 2 * * * root /var/emu/script/ipc-backup.sh conf l 14 #Backup - Konfiguration (Taeglich um 02:00) 0 6 * * * root /var/emu/script/ipc-set.sh #Rechte setzen (Taeglich um 06:00) #CCcam * * * * * root /var/emu/script/cccam-watchdog.sh #CCcam - Teste ob CCcam laeuft (jede Minute) #30 4 * * * root /var/emu/script/cccam restart #CCcam - EMU Neustart (Taeglich um 04:30) * 5 * * * root /var/emu/script/cccam-cfgnl.sh #CCcam - Lade neue Konfiguration (Taeglich um 05:00) #CCcamInfoPHP (Update,Ping,Online) #* * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_update.php?p=0 #CCcamInfoPHP - Update jede Minute 58 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_ping.php?p=0 #CCcamInfoPHP - PING jede Stunde 59 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_online.php?p=0 #CCcamInfoPHP - Online jede Stunde #Oscam #*/5 * * * * root /var/emu/script/oscam-watchdog.sh #OSCam - Teste ob OSCam laeuft (alle 5 Minuten) #29 4 * * * root /var/emu/script/oscam restart #OScam - EMU Neustart (Taeglich um 04:29) #NewCS #*/5 * * * * root /var/emu/script/newcs-watchdog.sh #NewCS - Teste ob NewCS laeuft (alle 5 Minuten) #DynDNS Static Update -> benoetigt [apt-get install ddclient] #6 6 * * 1 root /usr/sbin/ddclient -force > /var/log/ipc/dyndns_update.log #Static DynDNS Update (Woechentlich um 06:06, Sonntag)
Error: bad minute; while reading /etc/crontab
ERROR (Syntax error, this crontab file will be ignored)
#CCcam * * * * * root /var/emu/script/cccam-watchdog.sh #CCcam - Teste ob CCcam laeuft (jede Minute) #30 4 * * * root /var/emu/script/cccam restart #CCcam - EMU Neustart (Taeglich um 04:30) * 5 * * * root /var/emu/script/cccam-cfgnl.sh #CCcam - Lade neue Konfiguration (Taeglich um 05:00)
# * * * * * Benutzer Befehl
# | | | | |
# | | | | +---- Wochentag (0-7) (Sonntag =0 oder =7)
# | | | +------ Monat (1-12)
# | | +-------- Tag (1-31)
# | +---------- Stunde (0-23)
# +------------ Minute (0-59)
kannst/musst aber nicht
Code:# * * * * * Benutzer Befehl # | | | | | # | | | | +---- Wochentag (0-7) (Sonntag =0 oder =7) # | | | +------ Monat (1-12) # | | +-------- Tag (1-31) # | +---------- Stunde (0-23) # +------------ Minute (0-59)
Sie müssen registriert sein, um Links zu sehen.
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?