abloom (owner)

Revisions

gist: 119358 Download_button fork
public
Public Clone URL: git://gist.github.com/119358.git
Embed All Files: show embed
reader.rb #
1
2
3
4
5
6
7
8
9
#!/usr/bin/ruby
 
cmd = "#{File.dirname(__FILE__)}/tmp.rb"
 
out = IO.popen(cmd) do |child|
  until child.eof?
    puts child.gets
  end
end
tmp.rb #
1
2
3
4
5
6
7
8
#!/usr/bin/ruby
 
$stdout.sync = true
 
loop do
  puts 1
  sleep 0.5
end