From: camenix Date: 2006-11-01T20:25:15+09:00 Subject: Re: How to hide dos prompt? > lib.rb > def hello > puts "hello,world!" > end > > main.rb > require 'lib' $stdout=open('h.txt','w') $stderr=open('h1.txt','w') > puts "hi!" > hello It does work!