login
Header Space

 
 

stderr

August 31, 2008 - 3:04am
Submitted by jelari on August 31, 2008 - 3:04am.
Linux

stdin, stdout is fine for input and output. why there is specific file descriptor for stderr?.. stderr is pretty similar to stdout right?.. or is there any difference?

errors should not mix with data

August 31, 2008 - 4:18am

stdout is for results, stderr for messages. if you start

sort < infile > outfile

you only want data from infile in the outfile and not some arbitrary warning or error messages, and you want to actually see the messages

read the first three hits of

http://www.google.com/search?q=stdout+stderr

and remember using this magic answer machine next time

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary