<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"><<a href="mailto:captainhookzero@gmail.com" target="_blank">captainhookzero@gmail.com</a>></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"><<a href="mailto:mythtv@thegowers.me.uk" target="_blank">mythtv@thegowers.me.uk</a>></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 <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>> wrote:<br>
<br>
> On 08/30/2013 02:29 PM, Joey Morris wrote:<br>
>> Captain Hook <<a href="mailto:captainhookzero@gmail.com" target="_blank">captainhookzero@gmail.com</a>> wrote on Fri, Aug 30, 2013 at 03:12:39PM -0400:<br>
>>> On Fri, Aug 30, 2013 at 2:37 PM, Joey Morris <<a href="mailto:rjmorris.list@zoho.com" target="_blank">rjmorris.list@zoho.com</a>> wrote:<br>
>>><br>
>>>> Captain Hook <<a href="mailto:captainhookzero@gmail.com" target="_blank">captainhookzero@gmail.com</a>> wrote on Fri, Aug 30, 2013 at<br>
>>>> 12:43:48PM -0400:<br>
>>>>> Here are the contents of my crontab file:<br>
>>>>><br>
>>>>> 30 2 * * * root /usr/sbin/pm-suspend 2>&1 ./home/user/Templog/Cron.log <-------------------<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>&1 >/home/user/Templog/Cron.log<br>
<br>
You don'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 "sudo crontab -e", which from my understanding creates it as the root user's file.</div><div class="gmail_extra">
<br></div>
<div class="gmail_extra">Regarding specifying a user, I have tried both with "root" and without because I am grasping at straws at this point. I saw some crontab files online where they were specifying "root" 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'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't writing to the log, but I guess that'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'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 "sudo crontab -e"):</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's worth, I have tried both "./usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a>" and "/usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a>". Also, if I run this command manually, "sudo ./usr/share/mythtv/<a href="http://mythconverg_backup.pl">mythconverg_backup.pl</a>" (with the dot), it works perfectly, including rotating out the oldest backup after reaching 5.</div>
</div><div class="gmail_extra"><br></div></div>