Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Interfacing with menu driven apps

by cleen (Pilgrim)
on Feb 13, 2001 at 21:45 UTC ( [id://58166]=perlquestion: print w/replies, xml ) Need Help??

cleen has asked for the wisdom of the Perl Monks concerning the following question:

I was looking for information in possibly having an external program interface with a curses based program? IE have the external program press buttons, enter text in boxes etc etc..Has anyone ever run into a problem like this?

Replies are listed 'Best First'.
Re: Interfacing with menu driven apps
by davorg (Chancellor) on Feb 13, 2001 at 21:50 UTC
Re: Interfacing with menu driven apps
by TheoPetersen (Priest) on Feb 13, 2001 at 22:27 UTC
    I tried this once using ExpecTk (this was before Expect.pm), and decided that it was more hassle than it was worth. You can pull it off if the interface is very simple and very predictable, but that doesn't describe the custom apps I had to drive.

    Does the external program have any other interface, or do you have the code? You might right a much more reliable controller via another mechanism before you get curses control right.

Re: Interfacing with menu driven apps
by cleen (Pilgrim) on Feb 17, 2001 at 07:44 UTC
    Thanks for your replies guys! I ended up doing the expect thing! -c

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://58166]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-23 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found