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.
|