<jupyter_start><jupyter_text>script that sends users logged in data from a folder. Folder contains all the hostnames and their users logged in. Really what I want generated is a json file containing every hostname and userslogged in.<jupyter_code>import os
os.system('rsync -azP wcmckee@192.168.1.2:/home/wcmckee/sellcoffee/ /home/wcmckee/sellcoffee/')
mylis = os.listdir('/home/wcmckee/sellcoffee/hostnames/')
jsdict = dict()
for lis in mylis:
    print lis
    rdhos = open('/home/wcmckee/sellcoffee/hostnames/' + lis, 'r')
    hosrdz = rdhos.read()
    jsdict.update({lis: hosrdz})
jsdict
jsdict.keys()[0]
jsdict.values()[0]
jsdict.keys()[1]
jsdict.values()[1]
jsdict.keys()[2]
jsdict.keys()[3]
jsdict.values()[2]
jsdict.values()[3]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1450980392156863, 'fraction_numerical': 0.02091503267973856, 'mean_word_length': 5.128, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '341302', 'license': 'MIT', 'n_tokens_mistral': 308, 'n_tokens_neox': 287, 'n_words': 67, 'path': 'logeduserz.ipynb', 'repo_name': 'wcmckee/signinlca', 'size': '765'}