Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Redirect a specific file descriptor to a pipe?
- X-seq: zsh-users 22550
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Nathan Dorfman <na@xxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Redirect a specific file descriptor to a pipe?
- Date: Thu, 9 Mar 2017 18:04:17 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=XVXAA8s81HIbKhO2g/r6qrSpyRUVE6RuYAExlu7cCSg=; b=pC/ZKAChZO8S9vrwADqyrv6mHOSO2x33ZvjAlyAO6L5m7ocWRsBrUBKudZ3T6YlNAl CCWeDiNFQGCula+TyPD6OnzF+78PUxlHIlfPGAmaunXkjBvuOqo4XdrmDyzjFkI1+Kk8 xOZKkawSPyC+8zKQVRr/oVGtRLqj9bphG+QcuO99xezpCQmc4gOrBUhJlkm9ZqsnKV5i bUBARiL2G1QdU9lMu9/VF3/kj4W+aVNp68xizBsgUJyDN1v02sF7Th3rmiwMfMUEmaAR KQxI+w0nQfmy0KvFG0H6Pv5bww+aAadh8KeK4pJt2+hNgJZ8gCP3abfROYtanko9fgRB RaKg==
- In-reply-to: <CADgEyUsOZZZhiJM5JQrdHORt-ehoLJtYmwW8po4=LViuydMFiw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADgEyUsOZZZhiJM5JQrdHORt-ehoLJtYmwW8po4=LViuydMFiw@mail.gmail.com>
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