Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input info script

Status
Not open for further replies.

sedawk

Programmer
Joined
Feb 5, 2002
Messages
247
Location
US
Hi,

I don't know if this is the best place to ask this question. But I am sure Perl can do that job. Anyway, here is my question:

I have an executable file which installs an application. When hit "install", the executable will ask user info. For example,

> install
> Please input your name: (users input their names)
> Please input your ID: (users input their IDs)
...

There are about 20 items need to be input. For some reason, this procedure has to be done more than once with the exact inputs. I am wondering how to write a Perl or maybe shell script to do that.

The main problem is that the "install" executable has all the interface control. I don't know how to feed my inputs to "install", assuming I can save the user info into a file.

Thanks
 
Win32::GUITest is probably what you're after

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Thanks. But I forgot to say it is on Linux environment.

 
probably want to use Expect or Expect::Simple then. You can find them on
------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Thanks. I take a look at Expect::Simple. Not sure if it fits or not 'cause the prompts are predefined. Can someone provide a simple example?

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top