First page Back Continue Last page Overview Graphics

Shell outputs: line for line

import os

command = " "

while command != "exit":

command = input("command: ")

handle = os.popen(command)

line = " "

while line:

line = handle.read()

print(line)

handle.close()

print("Ciao, that's it!")