Re: [Ssh-sftp-perl-users] Net::SFTP on Windows 2k Server
Brought to you by:
dbrobins
From: Roderick A. A. <raa...@ts...> - 2005-01-05 18:18:22
|
Vladimir Parkhaev wrote: > Find 'services' file (c:\windows\system32\drivers\etc ?) > and add a line: > > ssh 22/tcp This fixed the previous error. Now for todays error. Your vendor has not defined Fcntl macro F_SETFL, used at D:/Perl/site/lib/Net/SSH/Perl.pm line 214. Fcntl::AUTOLOAD() called at D:/Perl/site/lib/Net/SSH/Perl.pm line 214 Looking around I find F_SETFL exported in Fcntl.pm and referenced ( documentation-wise ) in several other files but nothing that looks like a defined macro or otherwise. Here is the test script I'm using in case I missed something or made a bad assumption about what I assumed was an example in the CPAN documentation. The error is always coming from the Net::SFTP->new . use Net::SFTP; my %args; $args{ username } = 'root'; $args{ password } = '#######'; my $sftp = Net::SFTP->new( 'host.domain.tld', \%args ); $sftp->put("printertest", "printertest"); Rod -- --- [This E-mail scanned for viruses by Declude Virus] |