On Monday, September 30, 2002, at 08:32 PM, Justin Wright wrote: >> tcsh% fink selfupdate-cvs |& tee ~/fink_selfupdate-cvs >> tcsh% grep 'no longer in the repository' ~/fink_selfupdate-cvs >> >> Note the '|&' construct -- in the tcsh shell [OSX default], this sends >> both standard output & standard error down the pipe. If you don't >> capture >> stderr then chances are you won't capture error messages. The same >> trick >> can be donw in bash/sh but I forget the syntax on that side... > > bash$ fink selfupdate-cvs >fink.log 2>&1 > > is one easy way to do it. '>' will redirect stdout, '2>' for stderr. > For catching the output in the terminal as well, that would be
/sw/fink> fink selfupdate-cvs 2>&1 | tee ~/fink.log or alternatively, just redirect the output as above: /sw/fink> fink selfupdate-cvs >fink.log 2>&1 & and watch the logfile with: tail -f ~/fink.log Cheers, Derek ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users