Linux Commands Examples

A great documentation place for Linux commands


Simple mirror utility


 lwp-mirror [-v] [-t timeout] <url> <local file>

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


cd $root/build
lwp-mirror "$version.tar.gz" nginx-$version.tar.gz
tar -xzvf nginx-$version.tar.gz


This program can be used to mirror a document from a WWW server. The document is only transfered if the remote copy is newer than the local copy. If the local copy is newer nothing happens.

Use the "-v" option to print the version number of this program.

The timeout value specified with the "-t" option. The timeout value is the time that the program will wait for response from the remote server before it fails. The default unit for the timeout value is seconds. You might append "m" or "h" to the timeout value to make it minutes or hours, respectively.

Because this program is implemented using the LWP library, it only supports the protocols that LWP supports.

see also

lwp-request, LWP


Gisle Aas <gisle[:at:]aas[:dot:]no>

How can this site be more helpful to YOU ?

give  feedback