using tee to get output of multiple processes