Simple whiptail example.
#! /bin/bash
if (whiptail --title "PPP Configuration" --backtitle "Welcome to SEUL" --yesno "
Do you want to configure your PPP connection?" 10 40 )
then
echo -e "\nWell, you better get busy!\n"
elif (whiptail --title "PPP Configuration" --backtitle "Welcome to
SEUL" --yesno " Are you sure?" 7 40)
then
echo -e "\nGood, because I can't do that yet!\n"
else
echo -e "\nToo bad, I can't do that yet\n"
fi
Credit goes to http://archives.seul.org/seul/project/Feb-1998/msg00069.html
simple examples of how to
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment