[][src]Crate unix_exec_output_catcher

This library let's you execute a child process and catch its output (stdout and stderr). This is useful if you want to use the output from a specific command and transform it.

Structs

ProcessOutput

Holds the text output lines for stdout and stderr of the executed child process. The stdcombined-property holds both combined in the order they appeared.

Functions

fork_exec_and_catch

Executes a program in a child process and returns the output of STDOUT and STDERR line by line. Be aware that this is blocking and static! So if your executable produces 1GB of output text, the returned struct is 1GB in size. If the program doesn't terminate, this function will neither.