Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Ruby - Execute external command (system) - failure

  • system
res = system("ls -l abc")
puts "\n"
puts res
res = system("blabla")
puts "\n"
if res.nil?
  puts "res is nil"
end