HOla tengo este script
puts 'Menu'
puts '1- Mostrar Maquinas Virtuales Corriendo'
puts '2- Mostrar archivos de configuracion'
while TRUE
print 'vmshell#'
opt = STDIN.gets.to_i
if opt == 1
exec 'xm list'
end
if opt == 2
exec 'ls /etc/xen/zion/'
end
end
el problema cuando tipeo algunas de las opciones ejemplo 1 o 2 se termina la aplicacion, hay alguna funcion para volver al principio o nose
GRacias