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!
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|