def Main():
# *** Open, Close, Sleep ***
xsh.Session.Open("ssh://test:[email protected]")
#xsh.Session.Open("C:\\...\\NetSarang\\Xshell\\Sessions\\New Session.xsh")
xsh.Screen.Synchronous = True #True or False
xsh.Session.Sleep(1000)
#*** StartLog, StopLog ***
xsh.Session.LogFilePath = "C:\\...\\NetSarang\\Xshell\\Logs\\example.log"
xsh.Session.StartLog()
#*** Property ***
MsgInfo = "LogPath: " + xsh.Session.LogFilePath + ", "
MsgInfo = MsgInfo + "LocalAddress: " + xsh.Session.LocalAddress + ", "
MsgInfo = MsgInfo + "Path: " + xsh.Session.Path + ", "
MsgInfo = MsgInfo + "RemoteAddress: " + xsh.Session.RemoteAddress + ", "
MsgInfo = MsgInfo + "RemotePort: " + str(xsh.Session.RemotePort) + ", "
MsgInfo = MsgInfo + "Connected: " + str(xsh.Session.Connected) + ", "
MsgInfo = MsgInfo + "Logging: " + str(xsh.Session.Logging)
xsh.Dialog.MsgBox(MsgInfo)
xsh.Session.Close()
xsh.Session.StopLog()
Xshell Plus 资源
需积分: 10 155 浏览量
2022-03-23
11:46:02
上传
评论
收藏 15.79MB ZIP 举报
糯与诺
- 粉丝: 21
- 资源: 9
最新资源
- 基于mysql和python的学生选课系统【课程设计(实验报告+源码)】
- PxCook-像素大厨Windows版本安装包
- aspose-words-23.12-jdk16 有水印
- [大模型部署]在C# Winform中使用文心一言ERNIE-3.5 4K 聊天模型
- python毕业设计-基于Django+OpenCV的二维码生成与识别系统设计与实现.zip
- python毕业设计-基于Django+OpenCV的二维码生成与识别系统设计与实现+使用说明.zip
- 基于STM32单片机空气监测系统设计源码+详细文档+配套全部资料(毕业设计).zip
- rdf0412-kcu116-pcie-c-2019-1.zip(XILINX KCU116 源码)
- 基于C#语言的winform界面火车票订票系统(源码+实验报告)
- 【华为OD部分真题及讲解】华为OD部分真题及讲解
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0