[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] slaving a process

"Tommie M. Jones" wrote:
> 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.

If your Menu program reads only from stdin and write only to stdout, you're
pretty much stuck calling it from a System or shell call.  If you were working
in C/C++, I'd suggest popen().

One thing though - I'm not familiar with the IM stuff, but how is it that you
can easily call a perl script, but not an expect script?

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

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

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.