From owner-freebsd-questions Wed Dec 26 3:26:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from kabel203069.kabel.utwente.nl (kabel203069.kabel.utwente.nl [130.89.203.69]) by hub.freebsd.org (Postfix) with ESMTP id 4C9E437B405 for ; Wed, 26 Dec 2001 03:26:29 -0800 (PST) Received: by kabel203069.kabel.utwente.nl (Postfix, from userid 1000) id 872491F91; Wed, 26 Dec 2001 12:26:17 +0100 (CET) Date: Wed, 26 Dec 2001 12:26:17 +0100 From: Rogier Steehouder To: Nils Holland Cc: freebsd-questions@freebsd.org Subject: Re: Questions to all script wizards out there... Message-ID: <20011226122617.A873@localhost> Mail-Followup-To: Rogier Steehouder , Nils Holland , freebsd-questions@freebsd.org References: <20011224192919.A89314@tisys.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011224192919.A89314@tisys.org>; from nils@tisys.org on Mon, Dec 24, 2001 at 07:29:19PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 24-12-2001 19:29 (+0100), Nils Holland wrote: > I would like the script to use wget in order to fetch the program listing > of a radio station from the station's website. I would like to have seven > days fetched in advance. > > Now, the URL always looks like this: > http://www.dradio.de/dlf/vorschau///.html > > So in order to make wget fetch today's program, I'd run it like this: > > wget -options http://www.dradio.de/dlf/vorschau/2001/12/24.html In a bourne shell: for i in 0 1 2 3 4 5 6; do wget -options http://www.dradio.de/dlf/vorschau/`date -v +${i}d +'%Y/%m/%d'`.html done You don't even need a script :-) (Though it makes it easier) With kind regards, Rogier Steehouder -- ___ _ -O_\ // | / Rogier Steehouder //\ / \ r.j.s@gmx.net // \ <---------------------- 25m ----------------------> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message