decode supbprocess pipe on the fly