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

Re: Basic bash question.

It's my fault.
I mistake something like this
exec 6>&1 1>&-
echo "To a closed fd"

Kumar Appaiah wrote:
On Tue, Mar 04, 2008 at 12:10:25PM +0800, hhding wrote:
Any method to redirect any fd to the pipe?
Not only stdout,stderr.

If you mean both stdout and stderr

./configure 2>&1 | tee log.txt

would work. But I don't know if that is what you meant.



Reply to: