Anonymous Monk,
Normally, I would reply as dbp did and suggest that you go to a site where paying for code you are not willing to put forth the effort in is the norm.

But, I know who you are and that you have actually put forth a lot of effort in the CB today trying to accomplish this task. I think part of your problem is that you didn't take the advice of the people in the CB and post the KSH code along with this post.

You are much more likely to get a positive response if you say:
Hey everyone! I am trying to convert this KSH script over to Perl because I do not know how to fully automate it in KSH (send passwords/passphrases at appropriate time).

#!/usr/bin/ksh # CODE GOES HERE

What I have so far is:

#!/usr/bin/perl -w use strict; # CODE GOES HERE

But what I can't seem to figure out is how to <fill in the blank>.

This allows people to see the context of the problem, offer advice on what you want to do - or more often than not - point you to a module that already does what you are trying to accomplish.

I think you will make a fine addition here at PM, but you really should spend some time here reading all the wonderful documentation.

Looking forward to seeing the KSH code and what you have come up with so far in Perl.

Cheers - L~R


In reply to Re: Use Net::SSH::Perl to ask for a password and passphrase by Limbic~Region
in thread Use Net::SSH::Perl to ask for a password and passphrase by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.