#!/usr/bin/env ruby `mkfifo #{ARGV[0]}` f = File.new "#{ARGV[0]}", 'w' while line = STDIN.gets f.write line+"\n" f.flush end `rm #{ARGV[0]}`