Hello I want to read output of command which gives progress bar like output as show below
10% |**** | 3:56 ETA I tried with following code
import subprocess import sys proc = subprocess.Popen("command", shell=True, stdout=subprocess.PIPE) while True: line = proc.stdout.readline() if not line: break split = line.rstrip() print line print "\n" print "Done" This code reads output after completion of progress bar to 100%, but I want to read it at intermediate. Can any one help?