Cool! The reason to be a PLUG member is right here!
Alan
At 01:55 PM 7/26/01 -0700, you wrote:
>On Thu, 26 July 2001, Alan Dayley wrote:
>Cool! I'm glad it worked.
>
>Some follow-on noise, if you wanted to know more...
>
>If you wanted to use tee with your program that writes to stderr, then
you'd do this:
>
> foo 2>&1 | tee logfile
>
>This runs foo, redirecing foo's stderr to stdout so that it gets piped
normally. Then we pipe stdout to tee; tee writes everything it reads to
the file and writes it to standard-out.
>
>Add "2>&1" to your bag of tricks, along with "&>". You'll use it often.
>
>"&>" is really a shorthand for "2>&1 >". These two commands do the same
thing:
>
> foo &> logfile # bash-specific shorthand for...
> foo 2>&1 > logfile # this, which works in both bash and ksh
>
>I hope this isn't too much (or too confusing).
>
> Wayne
>________________________________________________
>See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't
post to the list quickly and you use Netscape to write mail.
>
>PLUG-discuss mailing list - PLUG-discuss@lists.PLUG.phoenix.az.us
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>