首页 > 系统服务 > 详细

Y1S002 xshell脚本编写示意

时间:2019-04-14 21:49:32      阅读:175      评论:0      收藏:0      [点我收藏+]

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)

实现效果

技术分享图片

 

技术分享图片

 

Y1S002 xshell脚本编写示意

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!