[Top][All Lists]

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

xtrace output on new file descriptor

From: Brian J. Murrell
Subject: xtrace output on new file descriptor
Date: Thu, 10 Dec 2009 22:12:53 -0500

I'm wondering if anyone has any tricks to preserve stderr on
filedescriptor 2 and get xtrace output on a different file descriptor.

I've pulled hair trying to get the redirection right for this but just
come up with the right combination.  I'd imagine it involves stashing
away fd 2, duplicating fd 2 to a new fd and then restoring fd back from
where it was stashed, or somesuch.

So to be clear, I want stdout on fd 1, stderr on fd 2 (as they are
normally) and then the xtrace output on some other fd, presumably 3.



Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]