reading multiline output
Mac Smith
macsmith.us at gmail.com
Thu Dec 22 20:07:12 EST 2011
More information about the Python-list mailing list
Thu Dec 22 20:07:12 EST 2011
- Previous message (by thread): reading multiline output
- Next message (by thread): reading multiline output
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 23-Dec-2011, at 6:17 AM, MRAB wrote: > 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". read() will read the complete output and than i will be able to parse it, i want to read the output of the command in realtime.
- Previous message (by thread): reading multiline output
- Next message (by thread): reading multiline output
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list