Simple cron script to copy remote webpage locally?
Frank Tegtmeyer
fte-sub-freebsd-questions at fte.to
Sun Jul 27 13:56:32 PDT 2003
"Daan Vreeken [PA4DAN]" <Danovitsch at 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
More information about the freebsd-questions
mailing list