From owner-freebsd-questions@FreeBSD.ORG Sun Jul 27 09:24:51 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF5F837B401 for ; Sun, 27 Jul 2003 09:24:51 -0700 (PDT) Received: from Danovitsch.dnsq.org (b74143.upc-b.chello.nl [212.83.74.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id B83FF43FA3 for ; Sun, 27 Jul 2003 09:24:49 -0700 (PDT) (envelope-from Danovitsch@Vitsch.net) Received: from FreeBSD.Danovitsch.LAN (b83007.upc-b.chello.nl [212.83.83.7]) by Danovitsch.dnsq.org (8.12.3p2/8.11.3) with ESMTP id h6RGIiak038042; Sun, 27 Jul 2003 18:18:44 +0200 (CEST) (envelope-from Danovitsch@Vitsch.net) Content-Type: text/plain; charset="iso-8859-1" From: "Daan Vreeken [PA4DAN]" To: "Dragoncrest" Date: Sun, 27 Jul 2003 18:26:52 +0200 User-Agent: KMail/1.4.3 References: <200307271529.h6RFTVIW035658@mail0.mx.voyager.net> In-Reply-To: <200307271529.h6RFTVIW035658@mail0.mx.voyager.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200307271826.52780.Danovitsch@Vitsch.net> cc: FreeBSD-questions@FreeBSD.org Subject: Re: Simple cron script to copy remote webpage locally? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2003 16:24:52 -0000 On Sunday 27 July 2003 16:51, Dragoncrest wrote: > I've got a webpage that updates dynamically on one of our servers and > lists a bunch of statistics about spam and such on our servers. Proble= m > is, the script puts a load on the server if too many people access it > and it eventually kills the server. I would like to lower the traffic > on this server by setting up a script on a remote server that is > activated every 10 minutes by cron and automatically loads the remote > script then copies the results to a local file on the new public server > which people can then view at their leasure without killing our stats > server. What is going to be the easiest way to do this? I'm sure ther= e > has to be a simple way to do this, but I'm kinda drawing a blank on how= =2E > Can anyone help? Take a look at the "fetch" program basically you just need to supply it a URL and a local file-name. # man fetch grtz, Daan