[mythtv-users] PM-Suspend/Cron job/motherboard Woes

Captain Hook captainhookzero at gmail.com
Sat Aug 31 15:58:34 UTC 2013


On Sat, Aug 31, 2013 at 11:26 AM, Captain Hook <captainhookzero at gmail.com>wrote:

>
>
>
> On Sat, Aug 31, 2013 at 4:48 AM, Russell Gower <mythtv at thegowers.me.uk>wrote:
>
>>
>> On 30 Aug 2013, at 20:37, Bill Meek <keemllib at gmail.com> wrote:
>>
>> > On 08/30/2013 02:29 PM, Joey Morris wrote:
>> >> Captain Hook <captainhookzero at gmail.com> wrote on Fri, Aug 30, 2013
>> at 03:12:39PM -0400:
>> >>> On Fri, Aug 30, 2013 at 2:37 PM, Joey Morris <rjmorris.list at zoho.com>
>> wrote:
>> >>>
>> >>>> Captain Hook <captainhookzero at gmail.com> wrote on Fri, Aug 30, 2013
>> at
>> >>>> 12:43:48PM -0400:
>> >>>>> Here are the contents of my crontab file:
>> >>>>>
>> >>>>> 30 2 * * * root /usr/sbin/pm-suspend 2>&1
>> ./home/user/Templog/Cron.log <-------------------
>>
>> 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
>> 30 2 * * * /usr/sbin/pm-suspend 2>&1 >/home/user/Templog/Cron.log
>>
>> You don't specify the user in a crontab file as there is one file per
>> user.
>>
>> Regards
>>   Russell
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>>
>
> I am creating it with "sudo crontab -e", which from my understanding
> creates it as the root user's file.
>
> 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.
>
> 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.
>

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.

On a related note, I am trying to run mythconverg_backup.pl 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.

Here are the contents of my crontab file (created with "sudo crontab -e"):

0 0 * * * mythmetadatalookup --refresh-all-rules
15 0 * * * mythmetadatalookup --refresh-all
30 2 * * * mythmetadatalookup --refresh-all-artwork
54 11 * * * ./usr/share/mythtv/mythconverg_backup.pl


For what it's worth, I have tried both "./usr/share/mythtv/
mythconverg_backup.pl" and "/usr/share/mythtv/mythconverg_backup.pl".
 Also, if I run this command manually, "sudo ./usr/share/mythtv/
mythconverg_backup.pl" (with the dot), it works perfectly, including
rotating out the oldest backup after reaching 5.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130831/1499a147/attachment.html>


More information about the mythtv-users mailing list