Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- command = " "
- while (command != "exit"):
- command = input("Commando: ")
- handle = os.popen(command)
- line = " "
- while line:
- line = handle.read()
- print(line)
- handle.close()
- print("bye!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement