Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Piping stderr?



I have always wondered about this:

Is it possible to pipe (not redirect) stderr? I have seen some
references on Google to a mysterious '|&' operand which might have done
just this in Korn shell, but I cannot seem to find anything on this in
the bash docs.

Ideas?

ところで、なぜかというと、sometimes one wants to log the output, on both
stdout and stderr to a file (a la 'foo >log 2>&1') but would like to see
the output as well. So 'foo | tee log' will handle that for stdout, but
not stderr, as that does not get piped to tee's stdin.

If I am missing something obvious, feel free to advise me of my idiocy! ;)


-- 
Josh Glover <jmglov@example.com>

Associate Systems Administrator
INCOGEN, Inc.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links