[mythtv-users] crontab vs. anacron from a mythtv perspective

Ian Cameron mkbloke at gmail.com
Fri Nov 9 18:03:13 UTC 2018


On Fri, 9 Nov 2018 at 15:20, Jim Abernathy <jfabernathy at gmail.com> wrote:

> 2. sudo crontab -e works but since the file is controlled by the command
> exclusively, you'd have to have the crontab formated line in a file to
> cut and paste.
>

You can backup and restore user crontabs, although you should restart cron
after a restore.

You don't have to copy and paste to create a crontab, you can invoke the
crontab command with a file name or by using stdin, i.e.:

crontab my-mythtv-crontab

or:

crontab < my-mythtv-crontab

Also, you can install user crontabs as root for other users using the -u
option to the crontab command.

I left my scripts in $HOME and a copy of the file I want copied to
> /etc/cron.d there as well.
>

If it was me, I'd symlink rather than have duplicates, but it's your system
and your decision.

Cheers, ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181109/4b235b28/attachment.html>


More information about the mythtv-users mailing list