GetIPlayer PVR not working from cron

Chris Davies chris at roaima.co.uk
Tue Jun 23 02:45:51 PDT 2015


On 22/06/2015 22:11, C E Macfarlane wrote:
 > Thanks, but while you *might* be right, and I'll try and think of a way
 > of testing what the path actually is for something called from crontab
 > [...]

The usual method is a job with asterisks for all periods, and "echo 
$PATH >/tmp/path" as the task.


 > ~ # which rtmpdump
 > /opt/share/bin/rtmpdump

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.


 > ... and as when the pvr is run from crontab it successfully updates
 > the caches in /root/.get_iplayer, I presume (perhaps unwisely?) that
 > it's alse reading the options file from there.

Depending on which crontab you're using, you may be able to specify the
user that will run the job. (This implicitly sets HOME, too.) Running
things as root that don't need to be run as root isn't always prudent.

Regards
Chris


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3742 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/get_iplayer/attachments/20150623/47483daa/attachment.p7s>


More information about the get_iplayer mailing list