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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Console

Status
Not open for further replies.

komyg

Programmer
Dec 13, 2005
68
BR
I need to write a program that sends a command to a console (exec ODA XXXX 1). This command will ring a buzzer in a remote location (XXXX is the number of the buzzer).
The console is not a MS DOS Prompt, but is started by a command in one (start wmconsole RC1). So I was thinking about creating a PROMPT and making it start the console.
As my program will be creating the PROMPT, I'll probably have the standard handles of the PROMPT.
These handles will be inherited by a new process created by the PROMPT (in wich case is the wmconsole).
Finally with those handles I'll probably be able input commands in to the stdin of the wmconsole, making it possible to send the command to it.
Is all that possible?
If so, how do I do it using tcl/tk expect?

Thanks,
Komyg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top