2017-07-20 126 views
1

我想通過ssh執行一個包含whiptail的bash腳本。問題是ssh不會顯示任何whiptail UI。使用腳本來遠程執行whiptail腳本

什麼是在本地計算機上顯示惠普提示的最佳方式?

腳本是遠程服務器上的交互式腳本,需要通過本地計算機上的腳本觸發(並且需要用戶回答提示)。

回答

1

this你在說什麼Whiptail?

要使用基於文本的用戶界面(TUI)進行交互,您需要與-t標誌這樣

ssh -t [email protected] 'whiptail --title "Example Dialog" --msgbox "This is an example of a message box. You must hit OK to continue." 8 78' 

上面的命令進行測試工作的運行ssh。請注意,您必須將整個命令放在引號中。如果它有旗幟。

+0

你能否詳述和更新你的問題? –