From: Daniel Flores Date: 2010-07-27T12:17:14+09:00 Subject: IO.popen exit the program when it failed i have been trying to recieved the output of a command with IO.popen and it works great but if i place a unknown command to the system the ruby program terminates. def comando ( inputcmd ) f = IO.popen(inputcmd) output = f.readlines return output end ######################################################### there is a loop calling the method like this: ######################################################### cliente.puts "Escriba el comando a ejecutar por cmd.exe: " inputcmd = cliente.gets cliente.puts comando( inputcmd ) any help will be appreciated!! Thank you! -- Posted via http://www.ruby-forum.com/.