/usr/local/bin
NameSizeModeActions
config_data71380555editdlrm
crc3210430555editdlrm
crontab33207360755editdlrm
drush61386460755editdlrm
drush.phar61386460755editdlrm
ea-php7258154000755editdlrm
ea-php7356472880755editdlrm
ea-php7463832960755editdlrm
ea-php8079860800755editdlrm
ea-php8180989520755editdlrm
ea_convert_php_ini408110755editdlrm
ea_current_to_profile115190755editdlrm
ea_install_profile72740755editdlrm
ea_sync_user_phpini_settings68880755editdlrm
htmltree11730555editdlrm
instmodsh41940555editdlrm
ipcount37240555editdlrm
iptab9820555editdlrm
json_pp38280555editdlrm
json_xs70130555editdlrm
lsphp9370755editdlrm
lwp-download86350555editdlrm
lwp-dump27970555editdlrm
lwp-mirror24780555editdlrm
lwp-request150590555editdlrm
mech-dump46230555editdlrm
passwd37686640755editdlrm
pear9350755editdlrm
php9330755editdlrm
php-config63840755editdlrm
prove134570555editdlrm
ptar34560555editdlrm
ptardiff25350555editdlrm
ptargrep42990555editdlrm
shasum92870555editdlrm
tpage89230555editdlrm
ttree392340555editdlrm
wp69284610755editdlrm
wp-cli.phar69284610755editdlrm
zipdetails483660555editdlrm
Edit: /usr/local/bin/lwp-mirror (2478B)
#!/usr/bin/perl -w eval 'exec /usr/bin/perl -w -S $0 ${1+"$@"}' if 0; # not running under some shell # Simple mirror utility using LWP =head1 NAME lwp-mirror - Simple mirror utility =head1 SYNOPSIS lwp-mirror [-v] [-t timeout] =head1 DESCRIPTION This program can be used to mirror a document from a WWW server. The document is only transferred if the remote copy is newer than the local copy. If the local copy is newer nothing happens. Use the C<-v> option to print the version number of this program. The timeout value specified with the C<-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. =head1 SEE ALSO L, L =head1 AUTHOR Gisle Aas =cut use LWP::Simple qw(mirror is_success status_message $ua); use Getopt::Std; use Encode; use Encode::Locale; $progname = $0; $progname =~ s,.*/,,; # use basename only $progname =~ s/\.\w*$//; #strip extension if any $VERSION = "6.15"; $opt_h = undef; # print usage $opt_v = undef; # print version $opt_t = undef; # timeout unless (getopts("hvt:")) { usage(); } if ($opt_v) { require LWP; my $DISTNAME = 'libwww-perl-' . LWP::Version(); die <<"EOT"; This is lwp-mirror version $VERSION ($DISTNAME) Copyright 1995-1999, Gisle Aas. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. EOT } $url = decode(locale => shift) or usage(); $file = encode(locale_fs => decode(locale => shift)) or usage(); usage() if $opt_h or @ARGV; if (defined $opt_t) { $opt_t =~ /^(\d+)([smh])?/; die "$progname: Illegal timeout value!\n" unless defined $1; $timeout = $1; $timeout *= 60 if ($2 eq "m"); $timeout *= 3600 if ($2 eq "h"); $ua->timeout($timeout); } $rc = mirror($url, $file); if ($rc == 304) { print STDERR "$progname: $file is up to date\n" } elsif (!is_success($rc)) { print STDERR "$progname: $rc ", status_message($rc), " ($url)\n"; exit 1; } exit; sub usage { die <<"EOT"; Usage: $progname [-options] -v print version number of program -t Set timeout value EOT }