<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, 9 Nov 2018 at 15:20, Jim Abernathy <<a href="mailto:jfabernathy@gmail.com">jfabernathy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. sudo crontab -e works but since the file is controlled by the command <br>
exclusively, you'd have to have the crontab formated line in a file to <br>
cut and paste.<br></blockquote><div><br></div><div>You can backup and restore user crontabs, although you should restart cron after a restore.<br></div><div><br></div><div>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.:</div><div><br></div><div>crontab my-mythtv-crontab<br></div><div><br></div><div>or:</div><div><br></div><div>crontab < my-mythtv-crontab</div><div><br></div><div>Also, you can install user crontabs as root for other users using the -u option to the crontab command.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I left my scripts in $HOME and a copy of the file I want copied to <br>
/etc/cron.d there as well.<br></blockquote><div> </div><div>If it was me, I'd symlink rather than have duplicates, but it's your system and your decision.<br></div><div><br></div><div>Cheers, ian</div><div><br></div></div></div>