[mythtv-users] crontab vs. anacron from a mythtv perspective
Jim Abernathy
jfabernathy at gmail.com
Fri Nov 9 14:23:36 UTC 2018
On 11/9/18 8:51 AM, Ian Cameron wrote:
> Or drop the correctly formated files into the /etc/cron.d/ directory.
> There are three good things about that option: firstly, they won't be
> changed by system upgrades; secondly, as well as supporting the
> standard crontab time specification, they have one additional field,
> that being the user to run as, i.e. no need to use sudo; thirdly the
> jobs are run at the exact time specified, unlike the jobs in the
> /etc/cron.{hourly,daily,weekly,monthly}/ directories, which are run
> sequentially by run-parts, which is triggered by cron.
>
> Cheers, Ian
>
I like your approach because:
1. It uses the exact file format as /etc/crontab.
2. Doesn't modify the system /etc/crontab.
It seems to accomplish exactly what 'crontab -e' except you can just
have a saved file on a backup to copy to the right directory. 'crontab
-e' hides it's files and can only be accessed via the command.
I may setup a test case for each.
Jim A
More information about the mythtv-users
mailing list