braikar
February 3rd, 2010, 01:36 AM
Hi,
I have been trying all options of wget to get it to work but it never fires a connection retry is the host address cannot be resolved. even if using the parameter '--retry-connrefused'
I have to explain this error of host resolving is not due to the server I'm downloading from, it comes from my internet connection, once every 20-30mins there is somekind of down time when any hostname resolution doesn't work for 4-5 seconds. and if a scheduled crontab download like the one below happens at that time, wget never does any retry to download again...?
One download example:
wget --tries=100 --retry-connrefused --waitretry=10 -O /home/braikar/Documents/Downloads\(Sheduled\)/Segment14_`eval date +%Y%m%d`.zip "http://oiswww.eumetsat.org/IPPS/html/MSG/RGB/EVIEW/SEGMENT14/IMAGESDisplay/24FramesEVIEW-SEGMENT14.zip"
gives the output like that when failed
--2010-02-03 00:30:00-- http://oiswww.eumetsat.org/IPPS/html/MSG/RGB/EVIEW/SEGMENT14/IMAGESDisplay/24FramesEVIEW-SEGMENT14.zip
Resolving oiswww.eumetsat.org... failed: Name or service not known.
wget: unable to resolve host address `oiswww.eumetsat.org'
and wget doesn't retry to connect again?
Is there something I'm doing wrong (the parameters are not correct) or is it normal for wget to abandon the download?
I did a bash script to check the downloaded file and it's size and if it is 0bytes force wget again until the file is no longer of 0bytes, so the problem is sorted...
But I'm just wondering if this is a problem which wget cannot handle or if I'm using wget wrongly?
Cheers
I have been trying all options of wget to get it to work but it never fires a connection retry is the host address cannot be resolved. even if using the parameter '--retry-connrefused'
I have to explain this error of host resolving is not due to the server I'm downloading from, it comes from my internet connection, once every 20-30mins there is somekind of down time when any hostname resolution doesn't work for 4-5 seconds. and if a scheduled crontab download like the one below happens at that time, wget never does any retry to download again...?
One download example:
wget --tries=100 --retry-connrefused --waitretry=10 -O /home/braikar/Documents/Downloads\(Sheduled\)/Segment14_`eval date +%Y%m%d`.zip "http://oiswww.eumetsat.org/IPPS/html/MSG/RGB/EVIEW/SEGMENT14/IMAGESDisplay/24FramesEVIEW-SEGMENT14.zip"
gives the output like that when failed
--2010-02-03 00:30:00-- http://oiswww.eumetsat.org/IPPS/html/MSG/RGB/EVIEW/SEGMENT14/IMAGESDisplay/24FramesEVIEW-SEGMENT14.zip
Resolving oiswww.eumetsat.org... failed: Name or service not known.
wget: unable to resolve host address `oiswww.eumetsat.org'
and wget doesn't retry to connect again?
Is there something I'm doing wrong (the parameters are not correct) or is it normal for wget to abandon the download?
I did a bash script to check the downloaded file and it's size and if it is 0bytes force wget again until the file is no longer of 0bytes, so the problem is sorted...
But I'm just wondering if this is a problem which wget cannot handle or if I'm using wget wrongly?
Cheers