<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Hi Charles!<br>
    </div>
    <blockquote type="cite"
      cite="mid:mailman.1.1634126402.15261.mythtv-users@mythtv.org">
      <pre class="moz-quote-pre" wrap="">Crontab
29,59 * * * * /home/username/resetMyth.sh

Script
#!/bin/bash

SHOWS=$(curl -H "Accept: application/json" <a class="moz-txt-link-freetext" href="http://mythtv:6544/Dvr/GetUpcomingList" moz-do-not-send="true">http://mythtv:6544/Dvr/GetUpcomingList</a> 2> /dev/null | jq .ProgramList.Count | cut -d '"' -f 2)
if [ $SHOWS -eq 0 ]; then
        echo "Restarting Myth Backend"
        sudo systemctl restart mythtv-backend
fi</pre>
    </blockquote>
    <p><br>
    </p>
    <p> </p>
    <pre class="western"><font face="moz-fixed"><font style="font-size: 9pt" size="2">And a thank you to you too! The half-hour check by the cron job to so an automatic reset will be handy – I’m not always at the computer! (Is that blasphemous?! <g>) </font></font>

<font face="moz-fixed"><font style="font-size: 9pt" size="2"><span lang="en-US">Your curl command (at least when I isolate it and test at Terminal) results in just a number, which for a cookbook scripter like me will probably be a lot easier to use.</span></font></font>


<font face="moz-fixed"><font style="font-size: 9pt" size="2"><span lang="en-US">Barry </span></font></font></pre>
    <p>
      <style type="text/css">pre.cjk { font-family: "Courier New", monospace }p { margin-bottom: 0.1in; line-height: 115% }a:link { so-language: zxx }</style></p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>