Re: Expect echo command without execution within xterm launch



Thanks a lot Larry, my mistake that I did not mention the senario
clearly at the first time. I started with a dtterm, then I'd launch 5
xterms windows using expect from dtterm. So "send xterm" or "exec
xterm" would do that. After that, if I proceed a "send command", it
will only send the command to dtterm to execute or display, nothing
can be shown under xterm. I'd like to know if it is possible to send a
command to xterm and make it hang up there rather than starting
execution right away (like "xterm -e command" do). Could you or anyone
please help. Thank you.

On Mar 29, 7:20 am, "Larry W. Virden" <lvir...@xxxxxxxxx> wrote:
On Mar 28, 11:16 am, sunbird3...@xxxxxxxxx wrote:

After launching xterm, I'd like to put a command line in xterm window
without executing it.

In expect, the whole idea is that you start a program, then you feed
things to the program and watch for the return.

So, in this case, what you want to do is to start an xterm, with no
command to execute, then to pass along a command - but not the final
carriage return, which would start the command.

Then, after you've done this, you want to pass along any input from
the user so that the user can press return and interact, if necessary,
with the resulting command.


.



Relevant Pages