Thanks for the comments. I'm going to write a general answer rather than a specific one for each comment.

I've got a tracking and reporting system that I want to integrate with a terminal-based parts system. Normally, we only do paperwork tracking of the parts, and that wastes a lot of our time.

What I was thinking was, "Why not run telnet through Expect.pm and have it do screen captures (for a printout of the paperwork--without the paper backup I can't convince people to switch over) and also have it pick up the interesting parts of the order--part number, serial number, airbill number, and so on." I expect I could do this without using Expect.pm, but what I read about Expect.pm leads me to expect that this is a good solution.

On the other hand, using Net::Telnet for this hadn't occurred to me, and it should have. I'm going to treat that as option #2. This isn't a hurry-up job, just something I want to add soon when I have time.

I have installed IO::Tty and IO::Stty, and the stub I wrote indicates that my trouble is due to not getting IO::Pty working. I'm going to go up to 5.005_03 as soon as possible (I started with it last night, but make didn't like my makefile), and I have a hunch that is going to fix it, as tilly suggests. If not, well, a note to the maintainer is in order, and looking at doing my task without Expect is also on the list.

Again, thanks for the help--I'll let you know how it all turns out.

Update: Since I'm not at that job anymore, I've quit working on this particular task for the moment. I wish I had a good (i.e., useful to others) answer to the question, but I don't. Still, I promised an update...


In reply to Re: Installing Expect.pm and IO by adamsj
in thread Installing Expect.pm and IO by adamsj

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.