Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Redirect a specific file descriptor to a pipe?



On Mar 9,  5:21pm, Nathan Dorfman wrote:
}
} strace -o /dev/fd/3 ./a.out > out.log 2> err.log 3>XXX
} 
} Instead of file XXX, I'd like to send fd 3 to |less. Is it possible?

You just need this:

strace -o /dev/fd/3 ./a.out > out.log 2> err.log 3>&1 | less



Messages sorted by: Reverse Date, Date, Thread, Author