[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/etc/crontab



Apesar de a bastante tempo já utilizar linux e o Debian
tem coisas que ainda são um problema.

Por padrão o crontab do debian vem editado para que o
cron.daily, cron.weekly e o cron.monthly executem as 7 da manha.

Mas mesmo editando este arquivo para outro horário, como no exemplo
abaixo o mesmo continua a ser executado as 7 da manha.

Claro, o serviços cron e anacron foram reiniciados e até mesmo a maquina
inteira.

Como fazer o cron executar em outro horário ?


# /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

# m h dom mon dow user	command
17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 3	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.daily )
47 3	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.weekly )
52 3	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.monthly )


Reply to: