Hi how do i display a progress bar using tqdm while running a subprocess, And instead of displaying the standard update, Display the progress bar instead until complete?
import os
import sys
import subprocess
def update_system():
subprocess.Popen( 'sudo apt-get -y update',
shell=True,
stdin=subprocess.PIPE ).communicate()
subprocess.Popen( 'sudo apt-get -y upgrade',
shell=True,
stdin=subprocess.PIPE ) .communicate()
I'm sorry if this post is bad it's my first time posting here. I basically want to run the above then do something like
while update_system = running
display_progress bar
until complete