[Ssh-sftp-perl-users] Re: Ssh-sftp-perl-users digest, Vol 1 #121
Brought to you by:
dbrobins
|
From: john f. <joh...@zn...> - 2005-08-16 15:59:07
|
try using SSH 2 only. (I had to use eval to trap errors.)
BTW the following works on linux, but I set up in my CPAN install to use
SSH2-
my %args = (user => $user,
password => $password ,
debug => 0) ; # set to one for verbose
foreach my $file ( @$list ) {
eval {
my $sftp = Net::SFTP->new($remote, %args) ;
my $storefile = $storefile_path. '/' . $file ;
$sftp->put($file, $storefile) ;# can't use "or die" here without
filtering the return
};
}
On Mon, 2005-08-15 at 20:39 -0700, ssh-sftp-perl-users-
re...@li... wrote:
>
> Today's Topics:
>
> 1. Problem in NET::SSH::Perl Invalid arguments divll (Michael Coons)
>
> --__--__--
>
>
> $args{protocol} = "2,1";
>
> End of Ssh-sftp-perl-users Digest
--
John Fisher at Znyx Networks
Santa Barbara office
|