[prev in list] [next in list] [prev in thread] [next in thread]
List: ast-users
Subject: [ast-users] ksh93: Can I get stderr into a pipeline
From: M.W.Ellwood () rl ! ac ! uk (Ellwood, MW (Mike))
Date: 2005-02-11 19:51:37
Message-ID: F5839D944C66C049BDB45F4C1E3DF89D1783A3 () exchange31 ! fed ! cclrc ! ac ! uk
[Download RAW message or body]
Two kind people have pointed out that:
command 2>&1 | command
should work, and it does.
Don't know why I didn't think of this (or if I did, I must have mis-typed it, originally).
Thanks again Andreas and Dave.
Mike
________________________________
From: ast-users-bounces@research.att.com on behalf of Ellwood, MW (Mike)
Sent: Sat 12/02/2005 00:19
To: ast-users@research.att.com
Subject: [ast-users] ksh93: Can I get stderr into a pipeline
I used to think this must be possible, but I haven't found a way that works:
Can I get the stderr from one commend into the stdin of another, in the ksh93 environment?
e.g. somecommand | someothercommand
where both fd1 and fd2 output goes to stdin of someothercommand.
I thought that:
exec 2>&1
...beforehand, might do the trick, but apparently not.
Am I missing something obvious, or is it not possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.research.att.com/pipermail/ast-users/attachments/20050212/8e3afaf1/attachment.htm
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic