From e08c995b48decdc17c5508a9dde6044228ea0fd6 Mon Sep 17 00:00:00 2001 From: kalt_r Date: Tue, 28 Jun 2016 11:20:33 +0200 Subject: [PATCH] Script execution --- script/jitter_scan.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/script/jitter_scan.py b/script/jitter_scan.py index d9793a7..ccc0ec6 100644 --- a/script/jitter_scan.py +++ b/script/jitter_scan.py @@ -9,35 +9,6 @@ stop = 180.0 step = 10.0 -def elogllrf(subject, message, system, subsystem, section, attachments = []): - """ - Add entry to ELOG. - """ - author = "pshell" + controller.getUser().name - entry = "" - - cmd = 'G_CS_ELOG_add -l "LLRF" ' - cmd = cmd + '-a "Author=' + author + '" ' - cmd = cmd + '-a "Entry=' + entry + '" ' - cmd = cmd + '-a "Subject=' + subject + '" ' - cmd = cmd + '-a "Section=' + section + '" ' - cmd = cmd + '-a "System=' + system + '" ' - cmd = cmd + '-a "Subsystem=' + subsystem + '" ' - cmd = cmd + '-a "Machine=SwissFEL" ' - cmd = cmd + '-a "Domain=All"' - for attachment in attachments: - cmd = cmd + '-f "' + attachment + '" ' - cmd = cmd + '-x -n 1' - cmd = cmd + ' "' + message + '"' - print cmd - #os.system (cmd) - #print os.popen(cmd).read() - import subprocess - proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) - (out, err) = proc.communicate() - if (err is not None) and err!="": - raise Exception(err) - print out