[ale] slaving a process

Tommie M. Jones tj at atlantageek.com
Tue Mar 5 14:54:07 EST 2002


Actually Expect is not my friend.  I wanted to turn a process that is
usually run by telnet to a process that can be accessed from Jabber (or
some other IM). That is the purpose of this.

I rethought the solution a bit and realized I need to execute this with a
System call inside the perl instead of the shell script.  Any other
suggestions.  Can the parent process control what the child process's
STDIN and STDOUT file handle is.

---------------------------
'Business Intelligence' is not an Oxymoron - http://www.intelliforge.com


On Tue, 5 Mar 2002, Pete Hardie wrote:

> "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.
>
>


---
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