Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Net::SFTP::Foreign getting files

by salva (Abbot)
on Apr 11, 2013 at 15:14 UTC ( #1028181=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ...
    my $start = quotemeta "$file$yesterday";
    my ($file) = $sftp->glob(qr/^$start\d{6}$/, names_only => 1);
    ...
    
  2. or download this
    $sftp->setcwd($ai_dir);
    my $starts = join('|', map quotemeta, @ai_files_day);
    $sftp->mget(qr/^(?:$starts)$yesterday\d{6}$/, $ai_dest_day);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2014-12-22 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (126 votes), past polls