How do I redirect stderr and stdout?

Quốc Ân

New member
How do I redirect stderr and stdout?
Answer
The regular output is sent to Standard Out (STDOUT) and the error messages are sent to Standard Error (STDERR). When you redirect console output using the > symbol, you are only redirecting STDOUT. In order to redirect STDERR, you have
to specify 2> for the redirection symbol.
 

Tìm kiếm

Back
Top