On Tue, 8 Dec 2009 11:00:18 +0300
Александр Екимов <[email protected]> wrote:

> Возникла необходимость еженочно запускать некое задание. Указываю в
> /etc/crontab время запуска для ежедневных заданий в 1:25 следующей
> строчкой
> 
> 25 1  * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
> --report /etc/cron.daily )
> 
> Задание выполняется около 8:00. Что я делаю не так?

$ cat /etc/cron.d/anacron
30 7    * * *   root    test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d 
anacron start >/dev/null
^^^^

Всё делается ровно так, как попросил.

-- 
Alexander Galanin

Attachment: pgpOErVm5uUMW.pgp
Description: PGP signature

Ответить