+ -
当前位置:首页 → 问答吧 → 关于read命令的两个问题

关于read命令的两个问题

时间:2011-12-09

来源:互联网

今天在virtual box下跑ubuntu 10.04,emacs写了个很简单的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:找不到命令

怎么解决呢?

作者: catsoul   发布时间: 2011-12-09

装它撒

作者: 枫叶饭团   发布时间: 2011-12-09

使用zenity

作者: eexpress   发布时间: 2011-12-09

代码:
sudo apt-get install dialog

作者: enzymer   发布时间: 2011-12-09

今天在virtual box下跑ubuntu 10.04,emacs写了个很简单的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:找不到命令

怎么解决呢?

作者: catsoul   发布时间: 2011-12-09

装它撒

作者: 枫叶饭团   发布时间: 2011-12-09

使用zenity

作者: eexpress   发布时间: 2011-12-09

代码:
sudo apt-get install dialog

作者: enzymer   发布时间: 2011-12-09