recordio — run a program recording its standard input and output
recordio
{next-prog
}
recordio is a utility that chain loads next-prog
with the execvp(3)
function.
It redirects the standard input and standard output through a pipe, whose other end is a child process that it spawns.
The child process has the original standard input and standard output. It records, to standard error, all of the I/O over the standard input and standard output; as well as passing it through the pipe.