由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - How to merge stdout and stderr
相关主题
how to redirect error output under unixhow to see the output to stderr?
为什么time命令无法重定向?有人知道吗?Re: 怎样知道程序运行时间?time 什么来着?
unix下编译fortran 的错误太多,看不到怎么办?How to redirect error messages to a file?
how to redirect the output如何将到stderr的输出重定向到文件?
50伪币:请教perl代码差错的问题!多谢啦!how to run background process after logout
help!!! pipe program关于cxterm的问题
Help!!What is the problem with these two pipes. Thanks.Re: how to change all the files .cpp to .C
help on building shared object[转载] About the history
相关话题的讨论汇总
话题: stderr话题: stdout话题: merge话题: p2话题: p1
进入Unix版参与讨论
1 (共1页)
m*****e
发帖数: 4193
1
I want to pipe all the output (to stdout and stderr) from a program
to another program (such as cat). How to do this?
"p1 2>&1 | p2" doesn't work
c*****t
发帖数: 1879
2
csh or tcsh:
p1 |& p2
sh:
p1 2>& 1 | p2

【在 m*****e 的大作中提到】
: I want to pipe all the output (to stdout and stderr) from a program
: to another program (such as cat). How to do this?
: "p1 2>&1 | p2" doesn't work

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] About the history50伪币:请教perl代码差错的问题!多谢啦!
如何单步执行shell?help!!! pipe program
which shell is best?Help!!What is the problem with these two pipes. Thanks.
CGI之Perl Script一问help on building shared object
how to redirect error output under unixhow to see the output to stderr?
为什么time命令无法重定向?有人知道吗?Re: 怎样知道程序运行时间?time 什么来着?
unix下编译fortran 的错误太多,看不到怎么办?How to redirect error messages to a file?
how to redirect the output如何将到stderr的输出重定向到文件?
相关话题的讨论汇总
话题: stderr话题: stdout话题: merge话题: p2话题: p1