pull stdout and stderr from cmd_block