Yeah, that would be good, except this is a fixed price project, and there are about 100-150 servers that need this script run on them. Im not about to do this. Having to compile/install Tty/Pty/Expect on all of em gives the sysadmins grey hairs. They dont want to install, and thats the excuse they are giving management.

In any case, Im about to cheat by writing a script from my workstation that uses Expect to ssh to each of the servers, mounts an NFS share which has my original script, executes my script minus the parts that needs Expect, and then runs the Expect parts via ssh. An ugly hack, but it should work ;-)

-chris


In reply to Re: Re: Interactive Input without Expect.pm by sagat
in thread Interactive Input without Expect.pm by sagat

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.