google-code-export / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
1 stars 0 forks source link

Crontab with RTMP Content - line 16712 #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. crontab (see below)

What is the expected output? What do you see instead?
- Manually, it is fine
- Via crontab, it is not
 -- I tried to add PATH in it, did not work better. It produced "env: perl: No such file or directory" in the log file (PATH=/etc:/bin:/sbin:/opt/local/bin:/opt/local/sbin:usr/bin:/usr/sbin:/usr/local/bin)

What version of the product are you using? On what operating system?
- OSX 10.6.5
- get_flash_videos version 1.24 (combined)
- RTMPDump v2.3

Please provide any additional information below.
===================
MANUAL

$ ./get_flash_videos http://www.tou.tv/krach/S2011E01
Downloading http://www.tou.tv/krach/S2011E01
Using method 'tou' for http://www.tou.tv/krach/S2011E01
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
[... doing fine]

===================
CRONTAB
5 13 24 * * /Users/MyUserName/get_flash_videos http://www.tou.tv/krach/S2011E01 
>> /Users/MyUserName/logs/cron_FGV.log 2>&1

LOG
Downloading http://www.tou.tv/krach/S2011E01
Using method 'tou' for http://www.tou.tv/krach/S2011E01
open3: exec of rtmpdump --pageUrl rtmp://medias-flash.tou.tv/ondemand/?
[...]
--playpath mp4:003/MP4/k/2011-01-14_krach_0001_1200.mp4 failed at 
/Users/MyUserName/get_flash_videos line 16712

Make sure you have 'rtmpdump' or 'flvstreamer' installed and available on your 
PATH.
Download failed, no valid file downloaded
Couldn't download any videos.

===================
CRONTAB
PATH=/etc:/bin:/sbin:/opt/local/bin:/opt/local/sbin:usr/bin:/usr/sbin:/usr/local
/bin
15 13 24 * * /Users/MyUserName/get_flash_videos 
http://www.tou.tv/krach/S2011E01 >> /Users/MyUserName/logs/cron_FGV.log 2>&1

LOG
env: perl: No such file or directory

Original issue reported on code.google.com by jcden...@gmail.com on 24 Jan 2011 at 7:31

GoogleCodeExporter commented 9 years ago
Environment is usually different when you run under cron. Specify the path in 
the cron line itself, for example:

15 13 24 * * PATH=/usr/local/bin /Users/MyUserName/get_flash_videos 
http://www.tou.tv/krach/S2011E01 >> /Users/MyUserName/logs/cron_FGV.log 

If you get errors about "env", specify the full path to perl on your system in 
the cron job too, for example:

15 13 24 * * PATH=/usr/local/bin /usr/bin/perl 
/Users/MyUserName/get_flash_videos http://www.tou.tv/krach/S2011E01 >> 
/Users/MyUserName/logs/cron_FGV.log

Original comment by zakflash...@gmail.com on 8 Feb 2011 at 9:19

GoogleCodeExporter commented 9 years ago
second is the good one
Thx a lot for the advice!

Original comment by jcden...@gmail.com on 9 Feb 2011 at 10:17