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
- 2846 reads
Comentarios recientes
8 years 33 weeks ago
9 years 5 weeks ago
9 years 5 weeks ago
9 years 5 weeks ago
10 years 20 weeks ago
11 years 28 weeks ago
11 years 28 weeks ago
11 years 29 weeks ago
12 years 24 weeks ago
12 years 32 weeks ago