Alien-Selenium
view release on metacpan or search on metacpan
inc/File/Fetch.pm view on Meta::CPAN
435436437438439440441442443444445446447448449450451452453454455### we can only set passive mode in interactive sesssions, so bail out
### if $FTP_PASSIVE is set
return
if
$FTP_PASSIVE
;
### see if we have a wget binary ###
if
(
my
$ncftp
= can_run(
'ncftp'
) ) {
my
$cmd
= [
$ncftp
,
'-V'
,
# do not be verbose
'-p'
,
$FROM_EMAIL
,
# email as password
$self
->host,
# hostname
dirname(
$to
),
# local dir for the file
# remote path to the file
File::Spec::Unix->catdir(
$self
->path,
$self
->file ),
];
### shell out ###
my
$captured
;
unless
(run(
command
=>
$cmd
,
buffer
=> \
$captured
,
( run in 0.683 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )