linuxkurs/beispiele/5/10-whiptail.sh
2019-03-06 09:38:15 +01:00

9 lines
285 B
Bash

#!/bin/bash
if (whiptail --title "Example Dialog" --yesno "This is an example of a yes/no box." 8 78)
then
whiptail --title "Exit Info" --msgbox "Du hast Yes gewählt. Exit Status: $?." 8 78
else
whiptail --title "Exit Info" --msgbox "Du hast NO gewählt. Exit Status: $?." 8 78
fi