http://qs321.pair.com?node_id=355046

recon_ice has asked for the wisdom of the Perl Monks concerning the following question:

I need help with getting sftp2 to work in WindowsXP from a Perl Script. I can call the commande with

 system "sftp2 -v -B \"c:\\inetpub\\sftp_instructions.txt\" user\@server.domain.com";

I can run the command from a DOS command like, and it works just fine, but when run from a Perl script, it gives me the following error:

SshFileCopy: Making local connection. SshFileXferClient: ext_name `newline@vandyke.com', data: 00000000: 0d0a .. SshFileCopy: Connection to local, ready to serve requests. Sftp2: Connection ready. FATAL: E:\m-ssh2-b33\lib\sshutil\sshsysutil\win32\sshwinstdiostream.c: +480 SshStdioStream (function name unavailable) Precondition failed: s +rc

I know this is more of an SSH question, but there HAS to be a way to get this to work.

I have tried to get Net::SFTP installed, but it fails (So does Net:SSH for that matter)

I can't get either module installed on either Unix, or Windows, using CPAN, so I just gave up and tried to run the command from a batch called from Perl.
(NOTE*** Typing curse-words on the CPAN command line does not help!!!)

Has anyone seen this SSH error before? Sounds like it might be an ENV problem..???

Please Help!