Add example for reading output of a process.