命令是如何完成的(重启apache或mysql)查看菜单回来?
VALUE=$(dialog --default-item "2" --stdout --menu "MENU" 50 160 50\
"1" "Test-1" \
"2" "Test-2")
case $VALUE in
1) /etc/init.d/apache2 restart 2>&1 | dialog --progressbox 16 80; sleep 1; ?????;;
2) /etc/init.d/mysql restart 2>&1 | dialog --progressbox 16 80; sleep 1; ?????;;
esac