GetIPlayer PVR not working from cron
Budgie
ajebay at errichel.co.uk
Wed Jun 24 02:57:15 PDT 2015
On 23/06/15 11:05, C E Macfarlane wrote:
>> The usual method is a job with asterisks for all periods, and "echo
>> $PATH >/tmp/path" as the task.
>
> Yes, I did something similar, I output a set command to a file. As you
> suggest, this revealed the cron environment to be very minimalist.
>
>> I'd ensure that /opt/share/bin is explicitly set at the front of the
>> PATH. Cron usually keeps its PATH really simple, PATH=/bin:/usr/bin,
>> for example.
>
> Yes, though in fact what I did to get it working last night was 'source
> /etc/profile; <GIP PVR command>'.
>
> I still don't understand why the GIP perl script is not picking up the path
> from its own options file, though.
>
> Thanks for all your help, and regards
> Charles Macfarlane.
>
>
> _______________________________________________
> get_iplayer mailing list
> get_iplayer at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer
>
>
Hi,
I had this problem when I started using cron a few years ago. The issue
is one of environment variables and you have found the solution.
I use a KDE desktop and cron is wrapped up in a Task Sceduler which has
provision for setting the correct environment. There are some notes on
this somewhere in man pages. Sorry I only just read your message and
glad that others have helped.
More information about the get_iplayer
mailing list