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
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
res = system("ls -l abc")
puts "\n"
puts res
res = system("blabla")
puts "\n"
if res.nil?
puts "res is nil"
end