Option to specify the output channel for the child process. It can be: 1. An already open file descriptor. 2. A file name. 3. IOTYPE. Usually a PIPE.
Declared in <util/subprocess.h>
struct output;
Eg: output{PIPE} OR output{"output.txt"}
| Name | Description |
|---|---|
output [constructor] | Constructors |
| Name | Description |
|---|---|
rd_ch_ | Read end of the channel, or -1 if unused. |
wr_ch_ | Write end of the channel, or -1 if unused. |