<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">&lt;<a href="mailto:rjmorris.list@zoho.com" target="_blank">rjmorris.list@zoho.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Captain Hook &lt;<a href="mailto:captainhookzero@gmail.com">captainhookzero@gmail.com</a>&gt; wrote on Sat, Aug 31, 2013 at 11:58:34AM -0400:<br>

<div class="im">&gt; On Sat, Aug 31, 2013 at 11:26 AM, Captain Hook &lt;<a href="mailto:captainhookzero@gmail.com">captainhookzero@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Sat, Aug 31, 2013 at 4:48 AM, Russell Gower &lt;<a href="mailto:mythtv@thegowers.me.uk">mythtv@thegowers.me.uk</a>&gt;wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On 30 Aug 2013, at 20:37, Bill Meek &lt;<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt; On 08/30/2013 02:29 PM, Joey Morris wrote:<br>
&gt; &gt;&gt; &gt;&gt; Captain Hook &lt;<a href="mailto:captainhookzero@gmail.com">captainhookzero@gmail.com</a>&gt; wrote on Fri, Aug 30, 2013<br>
&gt; &gt;&gt; at 03:12:39PM -0400:<br>
&gt; &gt;&gt; &gt;&gt;&gt; On Fri, Aug 30, 2013 at 2:37 PM, Joey Morris &lt;<a href="mailto:rjmorris.list@zoho.com">rjmorris.list@zoho.com</a>&gt;<br>
&gt; &gt;&gt; wrote:<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; Captain Hook &lt;<a href="mailto:captainhookzero@gmail.com">captainhookzero@gmail.com</a>&gt; wrote on Fri, Aug 30, 2013<br>
&gt; &gt;&gt; at<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt; 12:43:48PM -0400:<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;&gt; Here are the contents of my crontab file:<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;&gt;&gt; 30 2 * * * root /usr/sbin/pm-suspend 2&gt;&amp;1<br>
&gt; &gt;&gt; ./home/user/Templog/Cron.log &lt;-------------------<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If that really is a crontab file (created with the crontab -e command)<br>
&gt; &gt;&gt; and not a file in one of the /etc/cron.* directories then the entry should<br>
&gt; &gt;&gt; be<br>
&gt; &gt;&gt; 30 2 * * * /usr/sbin/pm-suspend 2&gt;&amp;1 &gt;/home/user/Templog/Cron.log<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; You don&#39;t specify the user in a crontab file as there is one file per<br>
&gt; &gt;&gt; user.<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
</div><div class="im">&gt; &gt; I am creating it with &quot;sudo crontab -e&quot;, which from my understanding<br>
&gt; &gt; creates it as the root user&#39;s file.<br>
&gt; &gt;<br>
&gt; &gt; Regarding specifying a user, I have tried both with &quot;root&quot; and without<br>
&gt; &gt; because I am grasping at straws at this point.  I saw some crontab files<br>
&gt; &gt; online where they were specifying &quot;root&quot; and I believe that is the way my<br>
&gt; &gt; old frontend was working as well.<br>
&gt; &gt;<br>
&gt; &gt; I see that you have not included a space after the redirection operator<br>
&gt; &gt; and above the file did include a space.  With a space included it doesn&#39;t<br>
&gt; &gt; work, I will try without.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Running the command without a space seems to have done the trick, however,<br>
&gt; it is still not writing to the log.  I guess we have succeeded in doing<br>
&gt; what I wanted to do, not sure why it isn&#39;t writing to the log, but I guess<br>
&gt; that&#39;s irrelevant at this point?  Thanks for all the help and suggestions.<br>
<br>
</div>Whether or not the space is present really shouldn&#39;t matter, so I<br>
suspect something else is going on. But if it&#39;s working for you now,<br>
maybe it isn&#39;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>
&gt; Here are the contents of my crontab file (created with &quot;sudo crontab -e&quot;):<br>
&gt;<br>
&gt; 0 0 * * * mythmetadatalookup --refresh-all-rules<br>
&gt; 15 0 * * * mythmetadatalookup --refresh-all<br>
&gt; 30 2 * * * mythmetadatalookup --refresh-all-artwork<br>
&gt; 54 11 * * * ./usr/share/mythtv/<a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a><br>
&gt;<br>
&gt; For what it&#39;s worth, I have tried both &quot;./usr/share/mythtv/<br>
&gt; <a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a>&quot; and &quot;/usr/share/mythtv/<a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a>&quot;.<br>
&gt;  Also, if I run this command manually, &quot;sudo ./usr/share/mythtv/<br>
&gt; <a href="http://mythconverg_backup.pl" target="_blank">mythconverg_backup.pl</a>&quot; (with the dot), it works perfectly, including<br>
&gt; 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&#39;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>