NAME

getfile - mirrors a file using LWP::UserAgent


SYNOPSIS

getfile [ -f ] [ -o output file ] [ -t seconds ] URL


DESCRIPTION

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.


OPTIONS

-f

force update of the local file even if it is up-to-date

-o file

use file as the local filename

-t seconds

set the timeout to seconds


NOTES

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).


SEE ALSO

wget(1), w3mir(1), lwp-mirror(1), perl(1), LWP::UserAgent(3), LWP::Simple(3)


AUTHOR

Steven Pritchard <steve@silug.org>