Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  When to use STDERR instead of STDOUT

Every process is initialized with three open file descriptors, stdin, stdout, and stderr. stdin is an abstraction for accepting input (from the keyboard or from pipes) and stdout is an abstraction for giving output (to a file, to a pipe, to a console).That's a very simplified explanation but true nonetheless. Those three file descriptors are collectively called 'The Standard Streams'.Where does stderr come from?It's fairly straightforward to understand why stdin and stdout exist, however stderr seems like the odd one out. Why do we need another stream for errors?This is a quote from Doug McIll...

5,153 0       UNIX STDERR STDOUT DIFFERENCE