I think you are trying to use wget for a use case that wget was not intended for... but there is a simple solution: write a script/routine which wakes up every n seconds/minutes and does an http request to the url you want to check. If the page has changed then your routine/script would invoke wget to retrieve the new page(s).

hth

Jonathan


----- Original Message ----- From: "Benjamin Scaplen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, January 25, 2006 7:06 AM
Subject: Downloading grib files


Hi,

I am using Wget version 1.9.1.

I am downloading weather information off the weatheroffice website
everyday around the same time. Each day the weatheroffice clears the page
and reposts the updated data but since the date is in the name, the names
all change.
eg. CMC_reg_ABSV_ISBL_250_ps15km_2006012312_P000.grib

What I am doing is using wget to get about 500 files from the site. I want
to be able to download the files AS SOON AS they are posted. I was
wondering if there was a way retry to look for a file (which wouldn't be
there yet because the previous day's date would be in the name) until it
is posted then as soon as it is posted be able to download it.

I tried to set the download 'tries' to infinity ( -t inf) but it seems
that it only works for a failure due to connection problems and doesn't
retry when the file I am looking for is not there. Is there any way to
keep looking for a file even if the file specified is not at the site
specified...yet (then of course download it when it is posted)?

I know this may be very confusing, the last question sums it up.

please reply to [EMAIL PROTECTED],

thanks,

Ben Scaplen



Reply via email to