Compare commits

...

2 Commits
master ... v1

Author SHA1 Message Date
Jeff Lindsay 91293a4312 Merge pull request #57 from paneq/v1
Sync stdout
2012-10-07 12:38:06 -07:00
Robert Pankowecki 80da07eedd Sync stdout
Otherwise output is cached by Ruby and not flushed unit process is finished.

More about this topic:  http://jstorimer.com/2012/09/25/ruby-io-buffers.html

Compare:
 * localtunnel -k ~/.ssh/id_rsa.pub 8080 | head -n 1
 * tail -f Rakefile | head -n 1
2012-10-07 22:29:49 +03:00
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ require 'rubygems'
require 'optparse'
require 'localtunnel'
$stdout.sync = true
key = nil
options = OptionParser.new do |o|
o.banner =