2013-01-10から1日間の記事一覧
tail -F だけやな #!/usr/bin/env ruby class Tail def initialize tailed_file, &blk check_file_validity(tailed_file) @tailed_file = tailed_file if block_given? @callback = blk else @callback = lambda {|s| STDOUT.write s } end end def follow s…