| Stream Redirection |
|
|
|
| Written by Tom Hirt | |||||||||||||||||||
| Tuesday, 24 February 2009 13:06 | |||||||||||||||||||
Page 1 of 5 Stream Redirection Under normal circumstances every Unix program has three streams opened for it when it starts up, one for input, one for output, and one for printing diagnostic or error messages. These are typically attached to the user's terminal (see tty(4)) but might instead refer to files or other devices, depending on what the parent process chose to set up. -Taken from the BSD Library Functions Manual for STDIN(3) The input stream is referred to as Standard Input or stdin, the ouput stream as Standard Output or stdout and the Error stream as Standard Error or stderr. As a systems admins, we often have need for input/output redirection, to many reasons for which to discuss within the context of this article. However, we will highlight a few real-world use-cases for input/output redirection to which you'll be able to reference as a guide within the context of your own environment for further use.
|
|||||||||||||||||||
| Last Updated on Monday, 02 March 2009 15:57 |