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 or register to post comments
- 2672 reads
Comentarios recientes
7 years 47 weeks ago
8 years 18 weeks ago
8 years 19 weeks ago
8 years 19 weeks ago
9 years 34 weeks ago
10 years 41 weeks ago
10 years 41 weeks ago
10 years 42 weeks ago
11 years 38 weeks ago
11 years 45 weeks ago