Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-02-2009, 07:56 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: Disabled
cron+wget = multiple downloads


I have a problem with very simple combination of wget+cron on my ubuntu server.
I created file execute.cron as normal user

execute.cron :

16 * * * * wget -t 0 > output.log

next i run : crontab execute.cron

Task was invoked properly but i as i result is should get one index.html page. When i run this from command line that is the case. Using cron i get

and so on

What can be a reason that cron + wget run multiple downloads ?

Best regards
Old 03-02-2009, 12:49 PM   #2
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
use the -O (capital 'O') option to force output file to retain a static file name. wget will append a .1, .2, .3, etc to index.html if that file exists locally already -- this is normal behavior and you would have found that behavior at the command line also. prove it to yourself by running the command multiple times at the command line.

also why not use -o output.log instead of redirecting stdout to output.log?

so just to be clear, the command would look like

wget -t0 -O index.html -o output.log

Last edited by grepmasterd; 03-02-2009 at 12:50 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the destination of downloads when using wget? Uxq Linux - Newbie 1 07-02-2008 09:56 PM
downloads stalling using firefox, wget, etc Radelix Linux - Networking 6 03-18-2008 11:49 AM
it downloads in firefox, not in wget moob8 Linux - Desktop 3 02-10-2007 10:40 AM
Where are wget downloads saved when using bash? kb9agt General 6 01-29-2007 12:04 PM
Running wget multiple downloads simultaneously stefaandk Linux - Newbie 1 09-04-2006 08:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration