|
>> (2) Expect is pretty archaic now. It's interesting you're using it.
>> To achieve maximum control, such as 20 seconds timeout?
>
> 对于第2点,我想知道对于pretty的替代工具是什么呢?
You mean replacement for Expect? I don't know any general replacement. But for specific tasks, authors of some tools are aware of the issue (i.e. users want to use his tool from a batch file) so they build the capability in the tool. For example, ftp has -n option, and sftp has -b. Read man page for details.
Yong Huang |
|