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
- 3252 reads








Comentarios recientes
10 years 20 weeks ago
10 years 43 weeks ago
10 years 43 weeks ago
10 years 44 weeks ago
12 years 6 weeks ago
13 years 14 weeks ago
13 years 14 weeks ago
13 years 15 weeks ago
14 years 11 weeks ago
14 years 18 weeks ago