ops102:redirection
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ops102:redirection [2024/02/01 19:44] – [Piping] chris | ops102:redirection [2024/05/04 02:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Standard File Descriptors | ===== Standard File Descriptors | ||
- | On Linux, other Unix-like systems, and on Windows, programs may open **file descriptors** (Linux terminology) or **handles** (Windows terminology). Each file descriptor/ | + | On Linux, other Unix-like systems, and on Windows, programs may open **file descriptors** (Linux terminology) or **file handles** (Windows terminology). Each file descriptor/ |
By default, three channels are opened automatically by the shell when a process is started. These are: | By default, three channels are opened automatically by the shell when a process is started. These are: | ||
Line 107: | Line 107: | ||
| | ||
| | ||
+ | |||
+ | Note that in this example, it is necessary to redirect stdout before redirecting stderr to the same location. | ||
===== Piping | ===== Piping | ||
- | Piping is a special case of redirection, | + | Piping is a special case of redirection, |
For example, on Windows, the output of the '' | For example, on Windows, the output of the '' |
ops102/redirection.1706816684.txt.gz · Last modified: 2024/04/16 18:10 (external edit)