Exemple #1
0
 def run(self):
     try:
         for node, brief_cmd, full_cmd in iter(self._queue.get, "STOP"):
             output_filename = "_".join([brief_cmd, node]) + ".txt"
             output_file = os.path.join(TMP_DIR, output_filename)
             get_process_output(output_file, full_cmd)
     finally:
         self._queue.task_done()
Exemple #2
0
    def run(self):
        try:
            for symapi, brief_cmd, full_cmd in iter(self._queue.get, "STOP"):
                init_environment(symapi)

                output_filename = ".".join([brief_cmd, symapi]) + ".xml"
                output_file = os.path.join(TMP_DIR, output_filename)
                get_process_output(output_file, full_cmd)
        finally:
            self._queue.task_done()