$ cat TonyNY.pl #!/usr/bin/env perl use strict; use warnings; my $userid = 'u'; my $password = 'p'; my $server = 's'; my $actionid = 'a'; my $pkgname = 'p'; my $wgetlog = '/usr/sfw/bin/wget -r -np --reject "index.html*" --https-only --no-check-certificate --user ' . $userid . ' --password ' . $password . ' https://' . $server . '/dev/' . $userid . '/' . $actionid . "_" . $pkgname . '/'; print "$wgetlog\n"; $ ./TonyNY.pl /usr/sfw/bin/wget -r -np --reject "index.html*" --https-only --no-check-certificate --user u --password p https://s/dev/u/a_p/ $ ./TonyNY.pl | wc -l 1