I have a code like this
#...
os.system('clear')
while true:
result=os.popen('myscript.sh')
print(result.read())
I want to show this result on top every time I print it out. Like what a "watch" command do.
So, How to?
I have a code like this
#...
os.system('clear')
while true:
result=os.popen('myscript.sh')
print(result.read())
I want to show this result on top every time I print it out. Like what a "watch" command do.
So, How to?