getfile - mirrors a file using LWP::UserAgent
getfile [ -f
] [ -o
output file ] [ -t
seconds ] URL
getfile fetches the file specified by the URL command-line argument. If the local file exists, it only fetches the remote file if it is newer than the local file.
force update of the local file even if it is up-to-date
use file as the local filename
set the timeout to seconds
The main advantage of this program versus more functional programs like wget(1) or w3mir(1) is simplicity. It is functionally equivalent, more-or-less, to
lwp-mirror(1), but it works around (what I consider to be) bugs in mirror()
in LWP::Simple(3)|LWP::Simple(3).
wget(1), w3mir(1), lwp-mirror(1), perl(1), LWP::UserAgent(3), LWP::Simple(3)
Steven Pritchard <steve@silug.org>