TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
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) ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Expect in a ActivePerl envirnoment
by BrowserUk (Patriarch) on Jun 08, 2004 at 15:17 UTC | |
|
Re: Using Expect in a ActivePerl envirnoment
by Fletch (Bishop) on Jun 08, 2004 at 15:00 UTC | |
|
Re: Using Expect in a ActivePerl envirnoment
by jfroebe (Parson) on Jun 08, 2004 at 15:34 UTC | |
|
Re: Using Expect in a ActivePerl envirnoment
by Mr. Muskrat (Canon) on Jun 09, 2004 at 00:17 UTC |