Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Affichage "Graphique"
- tmp=/tmp/choix$$
- dialog --backtitle "afficher la date plus tard" \
- --title "TITRE" \
- --msgbox "Texte Intro\nblablabla\nblablab\n\n Press <Enter> to continue..." 10 45 \
- secu1=1
- while [ $secu1=1 ]
- do
- dialog --menu "menu" 20 20 20 1 Menu1 2 Menu2 3 Menu3 4 MenuPrincpal 5 Quitter 2>$tmp \
- choix=$(cat $tmp);
- if [$choix=1]
- then
- echo $choix
- dialog --msgbox "Catégorie Menu 1" 10 45 \
- --clear \
- elif [$choix=2]
- then
- dialog --msgbox "Catégorie Menu 2" 10 45 \
- --clear \
- elif [$choix=3]
- then
- dialog --msgbox "Catégorie Menu 3" 10 45 \
- --clear \
- elif [$choix=4]
- then
- dialog --msgbox "Revenir au menu principal " 10 45 \
- --clear \
- secu1=0
- elif [$choix=5]
- then
- dialog --msgbox "Quitter le programme" 10 45 \
- --clear \
- else
- echo "not a choice"
- fi
- done
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement