[vpsFree.cz: community-list] prosim o radu: Cron
Michal Sviga
michal at sviga.cz
Wed Feb 27 12:25:46 CET 2013
Ahoj vsem,
jsem tu novy a potrebuji poradit ohledne cronu.
crond je spusteny a restartovany:
ps -ef | grep cron
root 9893 1 0 11:56 ? 00:00:00 /usr/sbin/cron
Ale bohuzel nevykonava zadne ukoly.
Mozna je chyba v crontabu. (pouzil jsem ale starsi, ktery mi na normalnim serveru fungoval)
Bohuzel cron neloguje. To je asi diky virtualu? Nemam messages ani syslog?
Lze crond nejak nastavit, aby alespon logoval?
Doufam, ze tu neotravuju s trivialitou. Snazil jsem se googlit, ale nepomohlo to.
Diky moc
Michal Sviga
--------------------------
Jinak /etc/crontab mam:
# /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=root
#test
* * * * * date >> /var/log/cron
# 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 )
#
*/30 * * * * root /usr/bin/wget -q -O - http://www.pressonline.cz/akce/ > /var/log/cron.log 2>&1
1 1 * * * root /usr/bin/wget -q -O - http://wiono.com/cs/cron.php
More information about the Community-list
mailing list