<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<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 face="Courier" class="">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 face="Courier" class="">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 face="Courier" class="">#!/bin/sh</font></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Courier" class="">Now to see if it runs a 0625 tomorrow.</font></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Courier" class=""><br class="">
</font></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Courier" class="">Jim A</font></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Courier" class=""><br class="">
</font></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 face="Courier" class=""><br class="">
</font></span></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 face="Courier" class=""><br class="">
</font></span></div>
</div>
<br class="">
</body>
</html>