simple examples of how to

Thursday, November 3, 2011

[Linux] whiptail simple example

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

No comments:

Post a Comment