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.
我有一个带有 Mac 地址的设备的 show 命令,我正在使用Expect.pm在 perl 中执行该命令。--More--命令的输出在底部有 100 多行。我能够在第一次出现--More--. 但不是在那之后。我尝试使用 while 循环它对我不起作用。请帮我解决这个问题。
--More--
我怀疑您正在连接到 Cisco 设备。如果是这样,在登录节点时发出“term len 0”。如果是瞻博网络,则在每个命令的末尾添加“| no-more”。