zenity
Par Laurent le vendredi 18 juillet 2008, 12:30 - programmer - Lien permanent
Manuel : http://library.gnome.org/users/zenity/2.22/zenity.html
Utilisations étendues : http://forum.ubuntu-fr.org/viewtopic.php?id=232644
Exemple, ici un petit script (beaucoup plus long en réalité) qui affiche un menu de gestion des serveurs et qui lancera la commande d'administration adéquate (ici VNC ou SSH) :
#!/bin/sh
CHOIX=`zenity --list \
--title="Administration Serveur" \
--width=300 --height=400 \
--column="Choix" --column="Machine" \
80 Serveur1 \
81 Serveur2 `
case $CHOIX in
80 )
ssh -l root ip_serveur1
;;
81 )
vncviewer ip_serveur2
;;
esac