From: Daniel Bretoi Date: 2003-03-27T01:25:37+09:00 Subject: Re: tee in ruby while catching status > Personally I do: > > make >make.out 2>&1 I need to see the output to the screen while doing it. :/ > You could write a different version of 'tee' which spawns the process of > interest (ls) itself, and passes back the right return code: you'd run it as > > teepee out ls /sldjclsc > I thought of that. What in ruby would enable me to print output while it's happening? A systemcall will let me see it. I can' twait for the process to finish before seing output as some of the executions can take hours, and there is useful output in the meantime. db