COS设置键盘交互式

时间:2017-12-18 21:43:14

标签: intersystems-cache intersystems-ensemble

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)   

1 个答案:

答案 0 :(得分:2)

Look at Read command 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)