How to redirect error messages to a file?# Unix - 噫吁兮,危乎高哉
T*B
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.
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.