|

楼主 |
发表于 2004-4-15 20:49:28
|
显示全部楼层
GOOGLE抓得到的都看过了 ,这个也包含在内。还是谢谢你。
我希望能把代码贴出来,如果含糊的指点管用,恐怕我已经
解决了。
FAQ里面原文:
Yes, read Exploring Expect, Chapter 17 (Background Processing). In the section "Expect as a Daemon", there's a very thorough discussion of this problem and how to solve it.
In short, there's no tty when you run a process from inetd. Echoing is controlled by the telnet protocol, so you must send and expect telnet protocol packets to solve the problem. Even knowing this, the actual implementation is very non-obvious which is why the book goes into it in such detail. |
|