Message from Python discussions
December 2018
— You're not puting that output in your variable
Reading from here
https://stackoverflow.com/questions/19267591/how-to-store-os-system-output-in-a-variable-or-a-list-in-python
im rewritting your code to make it work, hold on
— I tried with variable also but ended like same
— Btw if you read https://docs.python.org/3.5/library/os.html#os.system you will notice that this function actually "...returns the exit status of the command run
"
— I rewrote your code. here it is https://ghostbin.com/paste/b2jcg
— Getting a 404 error
— Can you please send it to Pastebin?
— Sure. https://pastebin.com/nHz9EHk2
— Ok
— Yes ...those \x1b like things are appearing
— In the method of os.popen().read()
— Https://stackoverflow.com/questions/14693701/how-can-i-remove-the-ansi-escape-sequences-from-a-string-in-python#14693789