[ale] slaving a process

Pete Hardie pete.hardie at dvsg.sciatl.com
Tue Mar 5 14:50:04 EST 2002


"Tommie M. Jones" wrote:
> 
> I have a executable that I want to slave to a perl script.
> Basically it is a menu driven compiled program... we will call it 'Menu'
> 
> I have a perl script that I want the Menu program to read stanard input
> too and write standard output too.
> 
> The perl script I can change.  The menu program I cannot.
> 
> So given this I was thinking along the lines of
> 
> menu_driver.pl | Menu > /tmp/named_pipe.out
> 
> and then have menu_driver.pl read from the named_pipe.
> 
> Will this work.
> Is there a better way.

expect is your friend.  It's just the ticket for automating user input.


-- 
Pete Hardie                   |   Goalie, DVSG Dart Team
    posting from, but not     |
	speaking for:             |
Scientific Atlanta, Digital Video Services Group


<html>
<body>
<font size="3" face="Times New Roman"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
<span style="font-size:10.0pt;font-family:Times New Roman;
mso-fareast-font-family:&quot;Times New Roman&quot;;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA"></span><font face="Times New Roman" size="3"><span style="mso-fareast-font-family:Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.</span></font></p>
</body>
</html>


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list