example of how to fork a proc and get the output via a pipe