-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfeed.py
More file actions
24 lines (20 loc) · 765 Bytes
/
feed.py
File metadata and controls
24 lines (20 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#Developer: Curly60e
#PyBLOCK its a clock of the Bitcoin blockchain.
#Version: 0.6.0b
import os
import os.path
import time as t
def readFile():
try:
print ("\n\033[1;34;40mWaiting for new data...\n")
downloadsFolder = 'downloads/'
while True:
if not os.listdir(downloadsFolder):
continue
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:
os.system("ps -ef | grep api_data_reader.py | grep -v grep | awk '{print $2}' | xargs kill -9")
os.system("ps -ef | grep demo-rx.py | grep -v grep | awk '{print $2}' | xargs kill -9")