pyblock/feed.py
curly60e 75d50727a7
rc1-v0.2.0
Added colors to the interface
Added "show confirmations" for any tx
Added feature sending messages to space with Satnode
Added a permanent Logo
Added System Information (CPU - Memory - Disk)
2020-05-25 19:35:24 -03:00

22 lines
664 B
Python

import os
import os.path
import time as t
def readFile():
try:
while True:
downloadsFolder = 'downloads/'
if not os.listdir(downloadsFolder):
print ("\n\033[1;34;40mWaiting for new data...\n")
t.sleep(50)
else:
print("\t\t\n\033[1;33;40mNew message from Space just arrived...\033[0;37;40m\n")
os.system("cat downloads/*")
os.system("rm downloads/*")
except (KeyboardInterrupt, SystemExit):
os.system("ps -ef | grep api_data_reader.py | grep -v grep | awk '{print $2}' | xargs kill -9")