start:rasberry:dialog
Ceci est une ancienne révision du document !
Table des matières
Utilisation de dialog
[http://translate.google.com/translate?hl=fr&sl=auto&tl=fr&u=http%3A%2F%2Flinuxcommand.org%2Flc3_adv_dialog.php| Commande Dialog]]
exemples
- test001.sh
#!/bin/bash cmd=(dialog --separate-output --checklist "Select options:" 22 76 16) options=( 1 "Check disk space" on 2 "List users currently logged in" off 3 "Show system uptime" off ) choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) clear for choice in $choices do case $choice in 1) df -h ;; 2) who ;; 3) uptime ;; esac done
Rendre executable le script et le lancer
chmod +x disk_check.sh ./disk_check.sh
/home/chanteri/www/fablab37110/data/attic/start/rasberry/dialog.1785557222.txt.gz · Dernière modification : de admin
