<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 31, 2013 at 12:37 PM, Joey Morris <span dir="ltr"><<a href="mailto:rjmorris.list@zoho.com" target="_blank">rjmorris.list@zoho.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Captain Hook <<a href="mailto:captainhookzero@gmail.com">captainhookzero@gmail.com</a>> wrote on Sat, Aug 31, 2013 at 11:58:34AM -0400:<br>
<div class="im">> On Sat, Aug 31, 2013 at 11:26 AM, Captain Hook <<a href="mailto:captainhookzero@gmail.com">captainhookzero@gmail.com</a>>wrote:<br>
><br>
> ><br>
> ><br>
> ><br>
> > On Sat, Aug 31, 2013 at 4:48 AM, Russell Gower <<a href="mailto:mythtv@thegowers.me.uk">mythtv@thegowers.me.uk</a>>wrote:<br>
> ><br>
> >><br>
> >> On 30 Aug 2013, at 20:37, Bill Meek <<a href="mailto:keemllib@gmail.com">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">captainhookzero@gmail.com</a>> wrote on Fri, Aug 30, 2013<br>
> >> at 03:12:39PM -0400:<br>
> >> >>> On Fri, Aug 30, 2013 at 2:37 PM, Joey Morris <<a href="mailto:rjmorris.list@zoho.com">rjmorris.list@zoho.com</a>><br>
> >> wrote:<br>
> >> >>><br>
> >> >>>> Captain Hook <<a href="mailto:captainhookzero@gmail.com">captainhookzero@gmail.com</a>> wrote on Fri, Aug 30, 2013<br>
> >> 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<br>
> >> ./home/user/Templog/Cron.log <-------------------<br>
> >><br>
> >> If that really is a crontab file (created with the crontab -e command)<br>
> >> and not a file in one of the /etc/cron.* directories then the entry should<br>
> >> 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<br>
> >> user.<br>
> >><br>
> ><br>
</div><div class="im">> > I am creating it with "sudo crontab -e", which from my understanding<br>
> > creates it as the root user's file.<br>
> ><br>
> > Regarding specifying a user, I have tried both with "root" and without<br>
> > because I am grasping at straws at this point. I saw some crontab files<br>
> > online where they were specifying "root" and I believe that is the way my<br>
> > old frontend was working as well.<br>
> ><br>
> > I see that you have not included a space after the redirection operator<br>
> > and above the file did include a space. With a space included it doesn't<br>
> > work, I will try without.<br>
> ><br>
><br>
> Running the command without a space seems to have done the trick, however,<br>
> it is still not writing to the log. I guess we have succeeded in doing<br>
> what I wanted to do, not sure why it isn't writing to the log, but I guess<br>
> that's irrelevant at this point? Thanks for all the help and suggestions.<br>
<br>
</div>Whether or not the space is present really shouldn't matter, so I<br>
suspect something else is going on. But if it's working for you now,<br>
maybe it isn't worth investigating further.<br>
<br>
A couple other things: (1) Did you look at the pm logs? See<br>
/var/log/pm-suspend.log and any older ones that have been rotated. (2)<br>
Does the directory /home/user/Templog actually exist?<br>
<div class="im"><br>
<br>
> Here are the contents of my crontab file (created with "sudo crontab -e"):<br>
><br>
> 0 0 * * * mythmetadatalookup --refresh-all-rules<br>
> 15 0 * * * mythmetadatalookup --refresh-all<br>
> 30 2 * * * mythmetadatalookup --refresh-all-artwork<br>
> 54 11 * * * ./usr/share/mythtv/<a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a><br>
><br>
> For what it's worth, I have tried both "./usr/share/mythtv/<br>
> <a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a>" and "/usr/share/mythtv/<a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a>".<br>
> Also, if I run this command manually, "sudo ./usr/share/mythtv/<br>
> <a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a>" (with the dot), it works perfectly, including<br>
> rotating out the oldest backup after reaching 5.<br>
<br>
</div>You should read up on relative versus absolute paths. The<br>
presence/absence of the dot at the beginning shouldn't be tripping you<br>
up this much.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">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 class="gmail_extra">As you probably see above, this issue has been resolved, but I will certainly look into relative/absolute paths, thank you for the tip.</div></div>