mytutorial has asked for the wisdom of the Perl Monks concerning the following question:
My conversion to binary using sftp is failing in my perl script. Can someone help? A portion of the perl script is below. Thank You!
use Net::SFTP::Foreign; my $sftp = Net::SFTP::Foreign->new($remotehost, %args) or $newerr += 1; if($newerr){ $err = $sftp->error; push @ERRORS, "Can't sftp to $remotehost - Error: $err"; myerr(); } else { $sftp->setcwd("$remotedir$file_ext") or $newerr=1; if($newerr){ $err = $sftp->error; push @ERRORS, "Can't cd to $remotedir - Error: $er +r"; myerr(); } else { foreach(@file) { $sftp->binary; $sftp->put("$OUTDIR$_", "$_") or $newerr = 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $sftp->binary failing
by NetWallah (Canon) on Aug 13, 2014 at 03:38 UTC | |
|
Re: $sftp->binary failing
by salva (Canon) on Aug 13, 2014 at 16:33 UTC | |
|
Re: $sftp->binary failing
by Anonymous Monk on Aug 13, 2014 at 00:45 UTC |