COS设置键盘交互式

问题描述 投票:1回答:1

在Net.SSH.Session中是否有任何配置设置可以让你设置键盘交互我看不到任何在课堂上设置它的选项(%Net.SSH.Session)?

http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?APP=1&LIBRARY=%25SYS&CLASSNAME=%25Net.SSH.Session

s ssh=##class(%Net.SSH.Session).%New()  
w "Connect to "_url_"/"_dir,!
s sc=ssh.Connect(url,port)
s sc=ssh.AuthenticateWithUsername(un,pwd)   
intersystems-cache intersystems-ensemble
1个回答
2
投票

看看Read命令http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_cread

r "URL: ",url
r "Dir: ",dir
w "Connect to "_url_"/"_dir,!
s ssh=##class(%Net.SSH.Session).%New()  
s sc=ssh.Connect(url,port)
s sc=ssh.AuthenticateWithUsername(un,pwd)  
© www.soinside.com 2019 - 2024. All rights reserved.