|
|
|
#!/usr/bin/env python3
|
|
|
|
import datetime
|
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
|
|
|
|
now = datetime.datetime.now()
|
|
|
|
date = now.strftime('%Y%m%d')
|
|
|
|
|
|
|
|
cwd = os.getcwd()
|
|
|
|
|
|
|
|
#def readfile():
|
|
|
|
# read_path = glob.glob(f"*.txt")
|
|
|
|
# return read_path
|
|
|
|
|
|
|
|
#print(readfile())
|
|
|
|
|
|
|
|
#def split_txt(readfile):
|
|
|
|
# with open(readfile, 'r') as f:
|
|
|
|
# txt = f.read()
|
|
|
|
# ret = [x.split(': ')[1] for x in txt.split('\n')]
|
|
|
|
#
|
|
|
|
# return ret
|
|
|
|
|
|
|
|
#print(split_txt(readfile))
|
|
|
|
|
|
|
|
#def calc(total, current):
|
|
|
|
# with open(txt.split, 'r') as f:
|
|
|
|
# num = float(line)
|
|
|
|
# total += num
|
|
|
|
# f.write(line)
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/haerin.txt") as f:
|
|
|
|
print("Haerin")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/hyein.txt") as f:
|
|
|
|
print("Hyein")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/hanni.txt") as f:
|
|
|
|
print("Hanni")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
#with open(f"{cwd}/monitoring/noella.txt") as f:
|
|
|
|
# print("Noella")
|
|
|
|
# print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/lina.txt") as f:
|
|
|
|
print("Lina")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/collection.txt") as f:
|
|
|
|
print("Collection")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/wista.txt") as f:
|
|
|
|
print("Wista")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/devi.txt") as f:
|
|
|
|
print("Devi")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/freya.txt") as f:
|
|
|
|
print("Freya")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
#with open(f"{cwd}/monitoring/calysta.txt") as f:
|
|
|
|
# print("Calysta")
|
|
|
|
# print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/eve.txt") as f:
|
|
|
|
print("Eve")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/ashel.txt") as f:
|
|
|
|
print("Ashel")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/yuvia.txt") as f:
|
|
|
|
print("Yuvia")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/pocmandiri.txt") as f:
|
|
|
|
print("pocmandiri.tel-access")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/cindy.txt") as f:
|
|
|
|
print("Cindy")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/walletdemo.txt") as f:
|
|
|
|
print("wallet-demo.tel-access.com")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/ai.txt") as f:
|
|
|
|
print("Ai")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/anin.txt") as f:
|
|
|
|
print("Anin")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/lala.txt") as f:
|
|
|
|
print("Lala")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
with open(f"{cwd}/monitoring/demochat.txt") as f:
|
|
|
|
print("demochat-crm.tel-access.com")
|
|
|
|
print(f.read())
|
|
|
|
|
|
|
|
#with open(f"{cwd}/monitoring/jessica.txt") as f:
|
|
|
|
# print("Jessica")
|
|
|
|
# print(f.read())
|
|
|
|
|
|
|
|
#with open(f"{cwd}/monitoring/zahra.txt") as f:
|
|
|
|
# print("Zahra Yuriva")
|
|
|
|
# print(f.read())
|
|
|
|
|
|
|
|
#with open(f"{cwd}/monitoring/violeta.txt") as f:
|
|
|
|
# print("Violeta")
|
|
|
|
# print(f.read())
|
|
|
|
|
|
|
|
#with open(f"{cwd}/monitoring/smartrecord.txt") as f:
|
|
|
|
# print("smartrecord.tel-access.com")
|
|
|
|
# print(f.read())
|
|
|
|
|
|
|
|
#with open(f"{cwd}/monitoring/yuriva.txt") as f:
|
|
|
|
# print("Yuriva")
|
|
|
|
# print(f.read())
|
|
|
|
|
|
|
|
#print("Rekap:\n")
|
|
|
|
#for inp in glob.glob("{cwd}/monitoring/*.txt")
|
|
|
|
#
|
|
|
|
#with open('input.txt', 'r') as inp, open('output.txt', 'w') as outp:
|
|
|
|
# for line in inp:
|
|
|
|
# try:
|
|
|
|
# num = float(line)
|
|
|
|
# total += num
|
|
|
|
# outp.write(line)
|
|
|
|
# except ValueError:
|
|
|
|
# print('{} is not a number!'.format(line))
|
|
|
|
#
|
|
|
|
#print('Total of all numbers: {}'.format(total))
|