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