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
- 2868 reads
Comentarios recientes
8 years 36 weeks ago
9 years 8 weeks ago
9 years 8 weeks ago
9 years 8 weeks ago
10 years 23 weeks ago
11 years 31 weeks ago
11 years 31 weeks ago
11 years 32 weeks ago
12 years 28 weeks ago
12 years 35 weeks ago