| |
| dialog |
|
| 来源:
ChinaUnix博客 日期:
2008.06.02 23:37 (共有条评论) 我要评论 |
| |
# !/bin/sh
# Ask questions and collect the answer
dialog --title "Questionnaire" --inputbox "please enter your name" 9 30 2>_1.text
Q_NAME=$(cat _1.text)
dialog --menu "$Q_NAME, what's music do you like best" 15 30 4 1 "Classical" 2 "Jazz" 3 "Country" 4 "Other" 2>_1.text
Q_MUSIC=$(cat _1.text)
if [ "$Q_MUSIC"=="1" ] ; then
dialog --msgbox "Good choice " 12 25
fi
sleep 5
dialog --clear
exit 0
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/69624/showart_724300.html
|
| 发表评论
查看评论(共有条评论)
我要提问
|
| |
|
|
|