Consume output form the subprocesses