Maybe its a Cygwin thing, the following: type subseq.rb | ruby pipe-test.rb works fine for me. pipe-test.rb is : =begin can pipe to scipt on Win ?? i.e. dos>type file.txt | ruby -w pipe-test.rb =end while gets() print end Is the ruby a Cygwin build? -- Posted via http://www.ruby-forum.com/.