subprocess::output

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.

Synopsis

Declared in <util/subprocess.h>

struct output;

Description

Eg: output{PIPE} OR output{"output.txt"}

Member Functions

NameDescription
output [constructor]Constructors

Data Members

NameDescription
rd_ch_ Read end of the channel, or -1 if unused.
wr_ch_ Write end of the channel, or -1 if unused.