10-14-2008
71,
0
Join Date: Jul 2008
Last Activity: 3 May 2011, 2:39 PM EDT
Posts: 71
Thanks Given: 1
Thanked 0 Times in 0 Posts
Script
Hello people i need help, i want to do a script in ksh with a menu.
For example
menu
1) view messages
2)view swap
and when a press 1
makes a cat /var/adm/messages. i think somethin like this
while (opcion != 0) do
echo "1) Verificacion Filesystem"
echo "2) Verificacion del hardware"
echo "3) Verificacion de messages"
echo "0) Salir "
done
read opcion
case $opcion in
1) cat /var/adm/messages ;;
2) echo pd -v;;
0) opcion=0 ;;
esac
when a run this said that opcion is not declarated o something like that .
I need help Thank you for your time.