Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Expect Linux 工具,我必须与 shell 交互。但是,这不是真正的互动,我只是想看看发生了什么。交互程序退出后如何让 Expect 退出?
没关系,我找到了。
interact $
会导致expect遇到字符串时退出$。
$