Wrote code to so pipe in a send command to the appropriate processes.