From: Hal Fulton Date: 2004-09-22T14:40:38+09:00 Subject: Re: How to output result to text file? nkb wrote: > Fabulous! This works! What exactly does '2' means? Where do I get info > about such thing as '2' or '3' or ?? :) This is a Unix or Linux shellism, unrelated to Ruby as such. Read about bash or whatever shell you're using. The '2' comes from the fact that standard error is file descriptor 2 (0 being stdin and 1 stdout). Hal > Thanks! > >> ruby mytestscript.rb 2> output.txt >> >> James >> >> >> >