<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 31, 2013 at 11:26 AM, Captain Hook <span dir="ltr">&lt;<a href="mailto:captainhookzero@gmail.com" target="_blank">captainhookzero@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><br><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Aug 31, 2013 at 4:48 AM, Russell Gower <span dir="ltr">&lt;<a href="mailto:mythtv@thegowers.me.uk" target="_blank">mythtv@thegowers.me.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><br>
On 30 Aug 2013, at 20:37, Bill Meek &lt;<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>&gt; wrote:<br>
<br>
&gt; On 08/30/2013 02:29 PM, Joey Morris wrote:<br>
&gt;&gt; Captain Hook &lt;<a href="mailto:captainhookzero@gmail.com" target="_blank">captainhookzero@gmail.com</a>&gt; wrote on Fri, Aug 30, 2013 at 03:12:39PM -0400:<br>
&gt;&gt;&gt; On Fri, Aug 30, 2013 at 2:37 PM, Joey Morris &lt;<a href="mailto:rjmorris.list@zoho.com" target="_blank">rjmorris.list@zoho.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Captain Hook &lt;<a href="mailto:captainhookzero@gmail.com" target="_blank">captainhookzero@gmail.com</a>&gt; wrote on Fri, Aug 30, 2013 at<br>
&gt;&gt;&gt;&gt; 12:43:48PM -0400:<br>
&gt;&gt;&gt;&gt;&gt; Here are the contents of my crontab file:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; 30 2 * * * root /usr/sbin/pm-suspend 2&gt;&amp;1 ./home/user/Templog/Cron.log &lt;-------------------<br>
<br>
</div>If that really is a crontab file (created with the crontab -e command) and not a file in one of the /etc/cron.* directories then the entry should be<br>
30 2 * * * /usr/sbin/pm-suspend 2&gt;&amp;1 &gt;/home/user/Templog/Cron.log<br>
<br>
You don&#39;t specify the user in a crontab file as there is one file per user.<br>
<br>
Regards<br>
<span><font color="#888888">  Russell<br>
</font></span><div><div><br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br></div></div></div><div class="gmail_extra">I am creating it with &quot;sudo crontab -e&quot;, which from my understanding creates it as the root user&#39;s file.</div><div class="gmail_extra">
<br></div>
<div class="gmail_extra">Regarding specifying a user, I have tried both with &quot;root&quot; and without because I am grasping at straws at this point.  I saw some crontab files online where they were specifying &quot;root&quot; and I believe that is the way my old frontend was working as well.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">I see that you have not included a space after the redirection operator and above the file did include a space.  With a space included it doesn&#39;t work, I will try without.</div>

</div>
</blockquote></div><br></div><div class="gmail_extra">Running the command without a space seems to have done the trick, however, it is still not writing to the log.  I guess we have succeeded in doing what I wanted to do, not sure why it isn&#39;t writing to the log, but I guess that&#39;s irrelevant at this point?  Thanks for all the help and suggestions.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">On a related note, I am trying to run <a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a> as a cron job in my backend and am essentially having the same trouble.  My artwork wasn&#39;t refreshing automatically despite what I had in the MythTV setup screens, so I have added that in the crontab file and that part is working fine so I know the file is being read.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Here are the contents of my crontab file (created with &quot;sudo crontab -e&quot;):</div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra">
0 0 * * * mythmetadatalookup --refresh-all-rules</div><div class="gmail_extra">15 0 * * * mythmetadatalookup --refresh-all</div><div class="gmail_extra">30 2 * * * mythmetadatalookup --refresh-all-artwork</div><div class="gmail_extra">
54 11 * * * ./usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a></div><div><br></div><div><br></div><div>For what it&#39;s worth, I have tried both &quot;./usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a>&quot; and &quot;/usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a>&quot;.  Also, if I run this command manually, &quot;sudo ./usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a>&quot; (with the dot), it works perfectly, including rotating out the oldest backup after reaching 5.</div>
</div><div class="gmail_extra"><br></div></div>