reading multiline output

MRAB python at mrabarnett.plus.com
Thu Dec 22 19:47:07 EST 2011


On 23/12/2011 00:33, Mac Smith wrote:
> Hi,
>
>
> I have started HandBrakeCLI using subprocess.popen but the output is
> multiline and not terminated with \n so i am not able to read it
> using readline() while the HandBrakeCLI is running. kindly suggest
> some alternative. i have attached the output in a file.
>
The lines are terminated with \r, so read with read() and then split on
"\r".



More information about the Python-list mailing list