Menu para Linux

#!/bin/sh
quit="no"
f_Reg () {
sudo shutdown -h now
exit
}
f_Smoke () {
#echo "Smoke function"
#echo "All your logic in this function"
sudo jnettop -i eth0
}
f_salir () {
#echo "Smoke function"
#echo "All your logic in this function"
exit
}
while [ $quit != "yes" ]
do
echo "1. Apagar"
echo "2. Monitoreo de Ips"
echo "3. Salir"
echo -n "Selecione : "
read choice
case $choice in
1) f_Reg ;;
2) f_Smoke ;;
3) f_salir ;;
*) echo "\"$choice\" No es correcto"
sleep 2 ;;
esac
done
»
- bitfrost's blog
- Login to post comments
- 2999 reads








Comentarios recientes
9 years 25 weeks ago
9 years 48 weeks ago
9 years 49 weeks ago
9 years 49 weeks ago
11 years 12 weeks ago
12 years 19 weeks ago
12 years 20 weeks ago
12 years 20 weeks ago
13 years 16 weeks ago
13 years 24 weeks ago