summaryrefslogtreecommitdiff
path: root/code/snippets/spawn_popen_no_block.rb
blob: 9cf54a022ee811c5fb118e1d1cdca266b7ec0d79 (plain)
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')