Hi All,
I've read a FAQ that Active Perl (Windows) does not support Expect. Is this true, and if so, is there a good alternate method ??
Basically, I have a program in Windows that's interactive and has about 10 different menus. So, I would like to automate this. So for example, say that program is mytest (executable) I would like to entering the following choices (1, 2, yes, no, 5, 6, yes, yes, no, 7, 10). Each choice followed by a carriage return, of course.
Any help would be greatly appreciated.
Thanks all.
***UPDATE***
So, I'm guessing I can not use Expect so I guess what I need to do it make STDIN a variable in the script (if you know what I mean) ?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.