pub fn write_stdout(text: &str) -> Result<()>
Writes text to process stdout.
Returns any I/O error reported while writing to stdout.