lib/language_pack/base.rb
# run a shell command and stream the output
# @param [String] command to be run
run a shell command and stream the output
run a shell command and stream the output
def pipe(command)
    output = ""
    IO.popen(command) do |io|
      until io.eof?
        buffer = io.gets
        output << buffer
        puts buffer
      end
    end
    output
  end
def pipe ( command ) output = "" IO . popen ( command ) do | io | until io . eof? buffer = io . gets output << buffer puts buffer end end output end
run a shell command and stream the output
run a shell command and stream the output
command
<not_specific>
<not_specific>
command to be run
command to be run