Date: 27 Jul 2003 22:55:27 +0200 From: Frank Tegtmeyer <fte-sub-freebsd-questions@fte.to> To: freebsd-questions@freebsd.org Subject: Re: Simple cron script to copy remote webpage locally? Message-ID: <87vftnadvk.fsf@penthesilea.fte.local> In-Reply-To: <200307271826.52780.Danovitsch@Vitsch.net> References: <200307271529.h6RFTVIW035658@mail0.mx.voyager.net> <200307271826.52780.Danovitsch@Vitsch.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"Daan Vreeken [PA4DAN]" <Danovitsch@Vitsch.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87vftnadvk.fsf>