说,shell下用dialog显示找不到命令这个问题

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
catsoul
帖子: 22
注册时间: 2010-10-15 11:40

说,shell下用dialog显示找不到命令这个问题

#1

帖子 catsoul » 2011-12-09 9:37

今天在virtual box下跑ubuntu 10.04emacs写了个很简单的shell,内容如下:

#!/bin/sh
# Ask some questions and collect the answer
dialog --title “Questionnaire” --msgbox “Welcome to my simple survey” 9 18
exit 0

然后哩,$/bin/bash filename.sh

结果显示:filename.sh: line 3: dialog:找不到命令

怎么解决呢?
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: 说,shell下用dialog显示找不到命令这个问题

#2

帖子 枫叶饭团 » 2011-12-09 9:49

装它撒
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 说,shell下用dialog显示找不到命令这个问题

#3

帖子 eexpress » 2011-12-09 9:54

使用zenity
● 鸣学
头像
enzymer
帖子: 103
注册时间: 2007-05-28 10:28

Re: 说,shell下用dialog显示找不到命令这个问题

#4

帖子 enzymer » 2011-12-09 10:04

代码: 全选

sudo apt-get install dialog
回复