Y1S002 xshell脚本编写示意

SecureCRT可以自己录制脚本,非常的方便;但是考虑到CRT收费,所以不计划把CRT作为使用的终端。

vbs脚本(test.vbs):

Sub main
    xsh.Screen.Synchronous = True
    xsh.Screen.Send "ll" & VbCr
    xsh.Screen.WaitForString "~$"
    xsh.Screen.Send "cat /proc/vertion" & VbCr
End Sub

脚本参考资料: https://blog.csdn.net/qidi_huang/article/details/52055480

实现方式:

Xshell->工具->脚本->运行 (test.vbs)

实现效果

原文地址:https://www.cnblogs.com/dluff/p/10707050.html