[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Separating stdout and stderr
From: |
Ben Elliston |
Subject: |
Re: Separating stdout and stderr |
Date: |
Thu, 31 Mar 2016 21:20:38 +1100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Thu, Mar 31, 2016 at 12:11:59PM +0200, Christophe Lyon wrote:
> But since we currently have "|&cat", we do redirect stderr, so the
> "and that standard error is not redirected" claude above is not
> fulfilled. Do you know what happens in this case?
No, but I would suggest that it is cleaner and more portable to use
Tcl exec's own way of doing this:
2>@1
Standard error from all commands in the pipeline is redirected to
the command result. This operator is only valid at the end of the
command pipeline.
This is used like an option, before the actual command.
Give that a go. It might work better.
Ben
signature.asc
Description: Digital signature
- Re: Separating stdout and stderr, (continued)
- Re: Separating stdout and stderr, Christophe Lyon, 2016/03/29
- Re: Separating stdout and stderr, Ben Elliston, 2016/03/29
- Re: Separating stdout and stderr, Christophe Lyon, 2016/03/30
- Re: Separating stdout and stderr, Ben Elliston, 2016/03/30
- Re: Separating stdout and stderr, Maxim Kuvyrkov, 2016/03/30
- Re: Separating stdout and stderr, Christophe Lyon, 2016/03/30
- Re: Separating stdout and stderr, Maxim Kuvyrkov, 2016/03/31
- Re: Separating stdout and stderr, Christophe Lyon, 2016/03/31
- Re: Separating stdout and stderr, Ben Elliston, 2016/03/31
- Re: Separating stdout and stderr, Christophe Lyon, 2016/03/31
- Re: Separating stdout and stderr,
Ben Elliston <=
- Re: Separating stdout and stderr, Christophe Lyon, 2016/03/31
- Re: Separating stdout and stderr, Christophe Lyon, 2016/03/31