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)

实现效果

 

 

posted @ 2019-04-14 21:08  Dluff  阅读(834)  评论(1编辑  收藏  举报