1 2 3 4
# This example will return a file descriptor (IO object). Reading from it # will return what was printed to STDOUT from the shell command. IO.popen('ls')