由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - How to redirect error messages to a file?
相关主题
unix下编译fortran 的错误太多,看不到怎么办?change read-only system to read/write? online waiting
A question about awkHelp!!! Open a large file in UNIX
how to redirect error output under unixHelp please: 2GB limit on file size
how to see the output to stderr?How to set environment variables for CGI scripts?
有人知道吗?Re: 怎样知道程序运行时间?time 什么来着?Another simple question
how to redirect the outputinterview question
I/O redirecthelp on building shared object
请教How to get rid of the bg job id redirection?How to merge stdout and stderr
相关话题的讨论汇总
话题: error话题: redirect话题: file话题: command话题: messages
进入Unix版参与讨论
1 (共1页)
T***B
发帖数: 137
1
sort largeFile > & logfile &
The above command will be core dumped when sorting a large file (30G). I want
to see the error message at the time it is dumped. The problem is that I have
to run the command in background.
The command I tried above doesn't work. It didn't catch the error message
during dumping. Any suggestions? Thanks a lot.
p******f
发帖数: 162
2

if you shell is like sh,
sort ... >logfile 2>errfile &

【在 T***B 的大作中提到】
: sort largeFile > & logfile &
: The above command will be core dumped when sorting a large file (30G). I want
: to see the error message at the time it is dumped. The problem is that I have
: to run the command in background.
: The command I tried above doesn't work. It didn't catch the error message
: during dumping. Any suggestions? Thanks a lot.

T***B
发帖数: 137
3
Thanks.
I am using tcsh. I will move to sh to try your advice.

want
have

【在 p******f 的大作中提到】
:
: if you shell is like sh,
: sort ... >logfile 2>errfile &

T***B
发帖数: 137
4
BTW, the 2> looks stange to me. Could you say something about it? thanks. hehe

message

【在 T***B 的大作中提到】
: Thanks.
: I am using tcsh. I will move to sh to try your advice.
:
: want
: have

s***g
发帖数: 4
5
redirect stderr. file no. of stderr = 2.

【在 T***B 的大作中提到】
: BTW, the 2> looks stange to me. Could you say something about it? thanks. hehe
:
: message

f*****r
发帖数: 229
6
Both two commands are equal. Thus it should not solve your problem.

【在 T***B 的大作中提到】
: Thanks.
: I am using tcsh. I will move to sh to try your advice.
:
: want
: have

a***t
发帖数: 39
7

want
have
sort largefile > logfile 2>&1 &

【在 T***B 的大作中提到】
: sort largeFile > & logfile &
: The above command will be core dumped when sorting a large file (30G). I want
: to see the error message at the time it is dumped. The problem is that I have
: to run the command in background.
: The command I tried above doesn't work. It didn't catch the error message
: during dumping. Any suggestions? Thanks a lot.

1 (共1页)
进入Unix版参与讨论
相关主题
How to merge stdout and stderr有人知道吗?Re: 怎样知道程序运行时间?time 什么来着?
为什么time命令无法重定向?how to redirect the output
如何将到stderr的输出重定向到文件?I/O redirect
50伪币:请教perl代码差错的问题!多谢啦!请教How to get rid of the bg job id redirection?
unix下编译fortran 的错误太多,看不到怎么办?change read-only system to read/write? online waiting
A question about awkHelp!!! Open a large file in UNIX
how to redirect error output under unixHelp please: 2GB limit on file size
how to see the output to stderr?How to set environment variables for CGI scripts?
相关话题的讨论汇总
话题: error话题: redirect话题: file话题: command话题: messages