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

Captain Hook captainhookzero at gmail.com
Sun Sep 1 01:56:13 UTC 2013


On Sat, Aug 31, 2013 at 12:37 PM, Joey Morris <rjmorris.list at zoho.com>wrote:

> Captain Hook <captainhookzero at gmail.com> wrote on Sat, Aug 31, 2013 at
> 11:58:34AM -0400:
> > 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.
> > >>
> > >
> > > 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.
>
> Whether or not the space is present really shouldn't matter, so I
> suspect something else is going on. But if it's working for you now,
> maybe it isn't worth investigating further.
>
> A couple other things: (1) Did you look at the pm logs? See
> /var/log/pm-suspend.log and any older ones that have been rotated. (2)
> Does the directory /home/user/Templog actually exist?
>
>
> > 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.
>
> You should read up on relative versus absolute paths. The
> presence/absence of the dot at the beginning shouldn't be tripping you
> up this much.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>

As you probably see above, this issue has been resolved, but I will
certainly look into relative/absolute paths, thank you for the tip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130831/3d7877f2/attachment-0001.html>


More information about the mythtv-users mailing list