Code Review
/
packages
/
precise
/
mcollective.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c3ffc544e0a96e490fe09cf48ce6146ad4dc2885
[packages/precise/mcollective.git]
/
lib
/
mcollective
/
vendor
/
systemu
/
samples
/
c.rb
1
#
2
# of course stdin can be supplied too. synonyms for 'stdin' include '0' and
3
# 0. the other stdio streams have similar shortcuts
4
#
5
require 'systemu'
6
7
cat = %q( ruby -e" ARGF.each{|line| puts line} " )
8
9
status = systemu cat, 0=>'the stdin for cat', 1=>stdout=''
10
puts stdout