text: import os
  import socket
  import time
  import datetime
  from distributed_ledger_functions import create_genesis_block
  from distributed_ledger_functions import next_block
  from cpu_temptest import monitor_cluster_node_high_cpu_temp
  #By Anton Rakos
  #This script runs locally on all members of a cluster. 
  #This script serves to run the cpu)temptest.py script for only as long as has been requested by the user.
  dir_path = os.path.dirname(os.path.realpath(__file__))
  cluster_name = "Eusocial-Cluster-Utility-master" #n
  user_name = "user" #u
  user_pass = "root" #p
  node_name = "Node" #v
  max_temperature = 90 #t
  job_interval = 5 #i
  job_time = 1 #c
  Nodes = []
  inets = []
  os.chdir(dir_path)
  in_line = open("info.txt", "r")
  for line in in_line:
      if(line[0] == "n"):
          cluster_name = line[1:].rstrip(' \n')
      elif(line[0] == "u"):
          user_name = line[1:].rstrip(' \n')
      elif(line[0] == "p"):
          user_pass = line[1:].rstrip(' \n')
      elif(line[0] == "v"):
          node_name = line[1:].rstrip(' \n')
      elif(line[0] == "t"):
          max_temperature = line[1:].rstrip(' \n')
      elif(line[0] == "i"):
          job_interval = line[1:].rstrip(' \n')
      elif(line[0] == "c"):
          job_time = line[1:].rstrip(' \n')
  in_line.close()
  file = open("nodes.txt", "r")
  for line in file:
      if(line[0] == "m"):
          new_inet = line[1:].rstrip(' \n')
          inets.append(new_inet)
  file.close()
  name = socket.gethostname()
  closing_time = time.time() + int(job_time)*60*60
  time_stamp2 = datetime.datetime.fromtimestamp(closing_time).strftime('Running until  %Y-%m-%d %H:%M:%S')
  while time.time() < closing_time:
      thermal_data = monitor_cluster_node_high_cpu_temp(name, job_interval, max_temperature, user_pass)   
  
  
  os.system("cp distributed_ledger.bin "+socket.gethostname())
  
  