ZOC7-ssh工具配置快速登錄執行命令

ssh工具ZOC7也很強大,執行自動腳本,快速命令等,這裏只實現自動登錄後執行指定命令功能

工具下載地址:鏈接: https://pan.baidu.com/s/14FH7Tq2GULRxElWxau1K8Q 提取碼: vdnk

預覽下效果:

配置步驟:

1.安裝後,打開快速鏈接(Quick Connection) ,填寫好ssh的IP和端口,在Session profile後點擊編輯Eidt按鈕

2.編寫你要執行的命令:左側TextSending 延時都改爲50ms,點擊Auto-Action,點擊新增按鈕Add

需要輸入回車Enter用^M代替,詳細規則參考官方文檔,截取片段如下:

The codes listed here can be added to actions in order to send equivalents of keys that can not be entered into dialog fields otherwise (e.g. when entering text to remap keys, etc.). E.g. in order to specify the text ZOC<Enter> somewhere, you would instead type ZOC^M  

 

Control Code Key/Equivalent
^(xx) Any character with code Hex-xx
e.g. ^(7F) for DEL
^M Enter, CR
(Newline in TN3270/5250)
^[ Esc
\E
\033
^H Backspace
^I Tab
^^ ^ char
^~ Ctrl+^ (dec 30)
^[[ CSI
^J Line Feed
^Z Send Data
(available in TN3270/5250 only)

注意事項:

1.向遠程計算機發送命令時回車Enter用^M代替

2.觸發規則是,只有符合條件就觸發,寫命令的時候需要注意下,一不小心就死循環了,儘量在命令結束添加一個忽略此觸發器的命令,不然會循環觸發。

 

這個工具用好了比shell更強大

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章