<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 01/14/2018 09:58 AM, Jim Abernathy wrote:<br>
</div>
<blockquote type="cite" cite="mid:BLUPR19MB01469E6207D56D3E506AD1A2AE150@BLUPR19MB0146.namprd19.prod.outlook.com">
<div>
<blockquote type="cite" class="">
<div class=""><br style="font-family: Helvetica; font-size:
              12px; font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; float: none; display:
              inline !important;" class="">On
 01/14/2018 08:00 AM, Stephen Worthington wrote:</span><br style="font-family:
              Helvetica; font-size: 12px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<blockquote type="cite" style="font-family: Helvetica;
              font-size: 12px; font-style: normal; font-variant-caps:
              normal; font-weight: normal; letter-spacing: normal;
              orphans: auto; text-align: start; text-indent: 0px;
              text-transform: none; white-space: normal; widows: auto;
              word-spacing: 0px; -webkit-text-size-adjust: auto;
              -webkit-text-stroke-width: 0px;" class="">
On Sun, 14 Jan 2018 12:26:48 +0000, you wrote:<br class="">
<br class="">
<blockquote type="cite" class="">I know I must be missing something simple.  Yesterday I worked to get the suggested optimize and backup scripts for mythconverg into the cron.daily directory.  I tested each of these scripts by running them as:<br class="">
<br class="">
sudo /etc/cron.daily/mythtv-backup<br class="">
<br class="">
sudo /etc/cron.daily/optimize_mythdb<br class="">
<br class="">
They both worked and I had the backup files where they should be and data in the syslog and /var/log/mythtv/optimize_mythdb.log files to indicate they ran okay.<br class="">
<br class="">
This morning anacron should have run at 6:25 my 2 daily scripts but it didn't and there is no indication in the syslog of it running. This is what I see at 6:25:<br class="">
<br class="">
Jan 14 06:25:01 mythbuntu CRON[11179]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))<br class="">
<br class="">
I again manually ran the scripts as before and they work.<br class="">
<br class="">
Any idea on why they may not be running automatically?<br class="">
<br class="">
My crontab is below.<br class="">
<br class="">
Jim A<br class="">
<br class="">
<br class="">
SHELL=/bin/sh<br class="">
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin<br class="">
<br class="">
# m h dom mon dow user    command<br class="">
17 *    * * *    root    cd / && run-parts --report /etc/cron.hourly<br class="">
25 6    * * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )<br class="">
47 6    * * 7    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )<br class="">
52 6    1 * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )<br class="">
#<br class="">
</blockquote>
</blockquote>
</div>
</blockquote>
<br class="">
</div>
<div>I did find that when I ran :</div>
<div>
<div style="margin: 0px; font-stretch: normal; line-height:
          normal;" class="">
<span style="font-variant-ligatures:
            no-common-ligatures; background-color: rgb(255, 255, 255);" class=""><font class="" face="Courier">sudo run-parts /etc/cron.daily</font></span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
          normal;" class="">
<span style="font-variant-ligatures:
            no-common-ligatures; background-color: rgb(255, 255, 255);" class=""><font class="" face="Courier">I had a problem with the optimize_mythdb because there was a comment as the first line in the script.  Needed
 to be </font></span><font class="" face="Courier">#!/bin/sh</font></div>
<div style="margin: 0px; font-stretch: normal; line-height:
          normal;" class="">
<font class="" face="Courier">Now to see if it runs a 0625 tomorrow.</font></div>
<div style="margin: 0px; font-stretch: normal; line-height:
          normal;" class="">
<font class="" face="Courier"><br class="">
</font></div>
<div style="margin: 0px; font-stretch: normal; line-height:
          normal;" class="">
<font class="" face="Courier">Jim A</font></div>
</div>
</blockquote>
<br>
<font face="Courier">So I waited until after 6:25 this morning and my scripts didn't run. Only one entry in syslog about cron.daily running.<br>
<br>
About 6:55 I decided to reboot the server.  While readingemail I got one at 7:16 that my database had been backed up and I checked syslog again and at 7:01 my cron.daily jobs ran correctly and the backup was in the right place.<br>
<br>
I have no idea why it ran at 7:01 and not 6:25 as crontab has setup.<br>
<br>
Strange,<br>
<br>
Jim A<br>
<br>
</font>
<blockquote type="cite" cite="mid:BLUPR19MB01469E6207D56D3E506AD1A2AE150@BLUPR19MB0146.namprd19.prod.outlook.com">
<div>
<div style="margin: 0px; font-stretch: normal; font-size: 10px;
          line-height: normal;" class="">
<span style="font-variant-ligatures: no-common-ligatures;
            background-color: rgb(255, 255, 255);" class=""><font class="" face="Courier"><br class="">
</font></span></div>
</div>
<br class="">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
</blockquote>
<br>
</body>
</html>