Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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\";

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 `', 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!

In reply to SSH and ActiveState by recon_ice

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • 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.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2023-03-30 11:07 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (74 votes). Check out past polls.