
Expect buffering question / dtterm interact question
Quote:
> I have a question regarding buffering.
> I opened a dtterm and spawned a shell in it using "interact -u",
I'm already lost. Make your description clearer!
Quote:
> and then ran a startServer script in it.
> Another startClient script is run in another window that
> connects to the shell running startServer.
> The server script prematurely exits at the same point all the time.
> I think it might be that the interact buffer is full.
Normally, Interact's buffers don't fill until the system's buffers
fill. Are you sure your processes are consuming all the data interact
is trying to send?
Quote:
> Is there anyway to prevent that from happening?
Yes, fix the underlying problem.
Quote:
> I have another question regarding the dtterm and interact -u command.
> When I do the following, why is there no shell in the dtterm?
Try it first with xterm to make sure you have all the details right.
Then try it with dtterm. (Shucks, why not use xterm in the first
place?)
Quote:
> I had to spawn a shell and do a interact -u in it.
> > spawn -pty -noecho
> stty raw -echo < $spawn_out(slave,name)
> regexp ".*(.)(.)" $spawn_out(slave,name) dummy c1 c2
> if {[string compare $c1 "/"] == 0} {
> set c1 "0"
> }
> set server_dtterm_pid [exec dtterm -S$c1$c2$spawn_out(slave,fd) -name
> "SERVER" &]
> close -slave
> expect "\n"
> set server_dtterm_id $spawn_id
> > spawn /bin/ksh
> log_user 1
> interact -u $server_dtterm_id
> Thanks in advance for answering my questions,
> Sun