Sha256: dd5843856107b46e15011c636b92761ecfa48446f404bcea31775c9d66b28b8a
Contents?: true
Size: 312 Bytes
Versions: 3
Compression:
Stored size: 312 Bytes
Contents
require "./lib/kommando" require "tempfile" outfile = Tempfile.new "test" k = Kommando.new "ping -c 3 -i 0.2 127.0.0.1", { output: outfile.path } Thread.abort_on_exception=true t = Thread.new do Kommando.new "tail -f #{outfile.path}", { output: true } end k.run t.kill puts File.read outfile.path
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kommando-0.1.2 | examples/stdout_to_file.rb |
kommando-0.1.1 | examples/stdout_to_file.rb |
kommando-0.1.0 | examples/stdout_to_file.rb |