cron + wget don't download

Asked by lan1967

Hi, ladies and gentlemen!
Sorry for disturbance.
I want to tell wget to download on specific schedule using crontab.
I have the following script:

10 15 * * 1-7 /usr/bin/wget -c "http://theor.mephi.ru/sem/school-12/%21_video_raw/starobinsky-27-9-12-STREAM/00006.MTS"
10 16 * * 1-7 killall wget

It works ok when I download using a terminal with a command:
wget -c "http://theor.mephi.ru/sem/school-12/%21_video_raw/starobinsky-27-9-12-STREAM/00006.MTS"

but not when I call wget from crontab.
I tried to change to another weblink in the script and it worked.
Thank you for attention.
Best wishes,

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu cron Edit question
Assignee:
No assignee Edit question
Solved by:
N1ck 7h0m4d4k15
Solved:
Last query:
Last reply:
Revision history for this message
Best N1ck 7h0m4d4k15 (nicktux) said :
#1

Try to use "gnome-schedule" . It is the same program (cron) but with a nice and easy graphical environment.

Then re-program your "job" and see if working better.

Search for "gnome=schedule" in software center.

Regards
NikTh

Revision history for this message
lan1967 (lan1967) said :
#2

Thanks NikTh, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

You should also use the -O option to put the file in a specific place after downloading.