From owner-freebsd-questions@FreeBSD.ORG Sun Jul 27 13:56:31 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 E832537B401 for ; Sun, 27 Jul 2003 13:56:31 -0700 (PDT) Received: from dns.tegtmeyer.com (sg820805.de [217.160.170.133]) by mx1.FreeBSD.org (Postfix) with SMTP id 1E5B743F3F for ; Sun, 27 Jul 2003 13:56:30 -0700 (PDT) (envelope-from fte-sub-freebsd-questions@fte.to) Received: (qmail 70571 invoked from network); 27 Jul 2003 20:56:50 -0000 Received: from unknown (HELO ) (217.82.203.141) by 0 with SMTP; 27 Jul 2003 20:56:50 -0000 Received: (qmail 1284 invoked by uid 1000); 27 Jul 2003 20:55:27 -0000 Mail-Followup-To: freebsd-questions@freebsd.org To: freebsd-questions@freebsd.org References: <200307271529.h6RFTVIW035658@mail0.mx.voyager.net> <200307271826.52780.Danovitsch@Vitsch.net> X-Face: dU\mXwf?KS(Sx?0y(1{8c=3W~Z,S+bzMe26W8YMmm7]9>tU:erm1G3NT,L"kwEQUZA]SPG& (s=v$)Gr@uS4HOlG2]k5 From: Frank Tegtmeyer Date: 27 Jul 2003 22:55:27 +0200 In-Reply-To: <200307271826.52780.Danovitsch@Vitsch.net> Message-ID: <87vftnadvk.fsf@penthesilea.fte.local> Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Military Intelligence) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 20:56:32 -0000 "Daan Vreeken [PA4DAN]" writes: > # man fetch Add also "curl" and "wget", "lynx --source", ... For a cron job its the best to first fetch the page to a temporary file. This file should be checked for some success indicators. If the file is valid, it can be renamed to the public visible name (mv). This is an atomic operation, so no access can produce empty/wrong content. Regards, Frank