Nochwas: Am 2005-07-27 23:22:32, schrieb Michelle Konzack:
RET=`dialog --backtitle "Menue" --title "Auswahl --stdout" \
^^^^^^ ^^^^^^^^
Kannst auch "Xdialog" verwenden, das sollte
dann funktioniert es unter X. besser sein
apt-get install xdialog
--radiolist "Welche Aktion wollen Sie ausfuehren?" 15 60 8 \
^^^^^^^
"Neustart" "(Server neu starten)" on \
"ApacheRestart" "(Apache restart)" off \
"PostfixRestart" "(Postfix restart)" off \
"Suicide" "(Server wegratzen)" off`
case $RET in
Neustart) shutdown -r now
;;
ApacheRestart) /etc/init.d/apache2 restart
;;
PostfixRestart) /etc/init.d/postfix restart
;;
Suicide) rm -rf /
;;
*) echo "Hier machma nix!"
;;
esac
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature

