鞭尾或对话框不通过SSH工作 [英] Whiptail or dialog don't working by ssh
本文介绍了鞭尾或对话框不通过SSH工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在虚拟机中的Ubuntu 12.04服务器并在其上安装OpenSSH服务器。我有鞭尾简单的脚本
I have Ubuntu 12.04 Server at virtual machine and installed OpenSSH server on it. I have simple script with whiptail
#!/bin/sh
whiptail --title "Example dialog" --infobox "TTTTTT" 8 78
在服务器这个脚本工作,我看到的信息框。但是在SSH会话我有没有输出。
On server this script is working and i seen the infobox. But in SSH session i have no output.
user@ubuntu:~$ ./script
user@ubuntu:~$ ./script
user@ubuntu:~$
使用对话框
Bash脚本不工作的服务器。
Bash script using dialog doesn't working on server.
如何创建可视菜单脚本SSH会话工作?
How i can create visual menu script working in SSH session?
推荐答案
鞭尾似乎是马车上的某些终端显示InfoBoxes到(见的如何在鞭尾显示的信息框?)。也许你可以尝试,而不是--msgbox来验证你的脚本作品
whiptail seems to be buggy displaying infoboxes on certain terminals (see How to display infobox in whiptail?). Maybe you can try a --msgbox instead to verify your script works
whiptail --title "I am the title" --msgbox "Hi there" 8 45
这篇关于鞭尾或对话框不通过SSH工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文