From: Pit Capitain Date: 2005-11-28T16:51:38+09:00 Subject: Re: forcing STDOUT.sync for scripts Paulus Esterhazy schrieb: > daz schrieb: > >>How about creating a "sync.rb" file in your site-ruby folder, then: >> >> ruby -rsync myscript.rb > > It would be great either to: > > 1) ship such a module with ruby > > or to > > 2) provide a command line option such as python's: > "-u: unbuffered binary stdout and stderr" > > This feature is often required, such as running a script in any IDE. Hi Paulus, another way is use a command line such as ruby -e "STDOUT.sync = true" -e "load ARGV.shift" myscript.rb Regards, Pit