资源简介

默认的xshell 6免费版有4个窗口限制,评估版也会有时间限制,这是淘宝购买的xshell6版本,解压后先点击绿化再使用

资源截图

代码片段和文件信息

def Main():
xsh.Session.Open(“C:\\...\\NetSarang\\Xshell\\Sessions\\New Session.xsh“)
xsh.Screen.Synchronous = True #True or False
xsh.Session.Sleep(1000)

#*** WaitForString ***
xsh.Screen.WaitForString(“aaa“) # input “aaa“ in Terminal

#*** Send ***
xsh.Screen.Send(“cat /etc/passwd“)
xsh.Screen.Send(‘\r‘)
xsh.Session.Sleep(1000)

#*** Get Clear ***
ScreenRow = xsh.Screen.CurrentRow - 1
ReadLine = xsh.Screen.Get(ScreenRow 1 ScreenRow 40)
Items = ReadLine.split(‘:‘);
xsh.Dialog.MsgBox(Items[2])
xsh.Screen.Clear()

#*** Property ***
xsh.Screen.Synchronous = False
MsgProp = “Col:“ + str(xsh.Screen.CurrentColumn) + “ “
MsgProp = MsgProp + “Row:“ + str(xsh.Screen.CurrentRow) + “ “
MsgProp = MsgProp + “TermCol:“ + str(xsh.Screen.Columns) + “ “
MsgProp = MsgProp + “TermRow:“ + str(xsh.Screen.Rows) 
xsh.Dialog.MsgBox(MsgProp)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-29 10:35  Xshell_Plus_v6.0.0095\
     目录           0  2018-08-07 12:17  Xshell_Plus_v6.0.0095\Xshell Plus\
     文件         861  2018-05-10 15:19  Xshell_Plus_v6.0.0095\Xshell Plus\!卸载.bat
     文件        3404  2018-08-07 12:17  Xshell_Plus_v6.0.0095\Xshell Plus\!绿化.bat
     文件      158920  2017-10-20 13:22  Xshell_Plus_v6.0.0095\Xshell Plus\CrashRpt.dll
     文件        8214  2017-10-17 13:41  Xshell_Plus_v6.0.0095\Xshell Plus\crashrpt_lang.ini
     文件      976904  2017-10-20 13:22  Xshell_Plus_v6.0.0095\Xshell Plus\CrashSender.exe
     文件         306  2017-10-17 13:41  Xshell_Plus_v6.0.0095\Xshell Plus\example.tkm
     文件        9484  2017-10-17 13:41  Xshell_Plus_v6.0.0095\Xshell Plus\filexfer.dat
     目录           0  2018-08-07 11:54  Xshell_Plus_v6.0.0095\Xshell Plus\HighlightSample\
     文件        2098  2018-04-18 13:24  Xshell_Plus_v6.0.0095\Xshell Plus\HighlightSample\New Highlight Set (Sample).hls
     目录           0  2018-08-07 12:13  Xshell_Plus_v6.0.0095\Xshell Plus\Languages\
     文件      388608  2018-07-20 18:37  Xshell_Plus_v6.0.0095\Xshell Plus\Languages\XagentCHS.dll
     文件     1480192  2018-08-07 12:12  Xshell_Plus_v6.0.0095\Xshell Plus\Languages\XftpCHS.dll
     文件      967680  2018-08-07 12:06  Xshell_Plus_v6.0.0095\Xshell Plus\Languages\XshellCHS.dll
     文件     1213440  2018-08-07 12:06  Xshell_Plus_v6.0.0095\Xshell Plus\Languages\XshellCoreCHS.dll
     文件      700928  2018-07-20 18:39  Xshell_Plus_v6.0.0095\Xshell Plus\Languages\XtransportCHS.dll
     文件      132592  2017-10-17 13:41  Xshell_Plus_v6.0.0095\Xshell Plus\NsCopyHook3.dll
     文件      785856  2018-07-20 18:23  Xshell_Plus_v6.0.0095\Xshell Plus\nslicense.dll
     文件      162240  2018-07-20 18:41  Xshell_Plus_v6.0.0095\Xshell Plus\nsprofile2.dll
     文件     1108416  2018-07-20 18:41  Xshell_Plus_v6.0.0095\Xshell Plus\nsresource.dll
     文件      137664  2018-07-20 18:41  Xshell_Plus_v6.0.0095\Xshell Plus\nssecurity.dll
     文件       54208  2018-07-20 18:41  Xshell_Plus_v6.0.0095\Xshell Plus\nssftp.dll
     文件      111552  2018-07-20 18:41  Xshell_Plus_v6.0.0095\Xshell Plus\nssock2.dll
     文件     1503168  2018-07-20 18:41  Xshell_Plus_v6.0.0095\Xshell Plus\nsssh3.dll
     文件      388544  2018-07-20 18:41  Xshell_Plus_v6.0.0095\Xshell Plus\nsutil2.dll
     文件     2785184  2018-07-20 18:41  Xshell_Plus_v6.0.0095\Xshell Plus\python34.dll
     文件     9417642  2018-05-15 10:57  Xshell_Plus_v6.0.0095\Xshell Plus\python34.zip
     目录           0  2018-08-07 11:54  Xshell_Plus_v6.0.0095\Xshell Plus\scriptSample\
     目录           0  2018-08-07 11:54  Xshell_Plus_v6.0.0095\Xshell Plus\scriptSample\Screen\
     文件         950  2017-10-17 13:41  Xshell_Plus_v6.0.0095\Xshell Plus\scriptSample\Screen\xshell_screen.js
............此处省略13个文件信息

评论

共有 条评论