Script execution
This commit is contained in:
@@ -9,7 +9,7 @@ stop = 180.0
|
||||
step = 10.0
|
||||
|
||||
|
||||
def elogllrf(subject, message, attachments = [], system, subsystem, section, machine = "SwissFEL", logbook = "LLRF", encoding=1):
|
||||
def elogllrf(subject, message, attachments = [], system, subsystem, section):
|
||||
"""
|
||||
Add entry to ELOG.
|
||||
"""
|
||||
@@ -28,7 +28,7 @@ def elogllrf(subject, message, attachments = [], system, subsystem, section, mac
|
||||
cmd = cmd + '-a "Domain=All"'
|
||||
for attachment in attachments:
|
||||
cmd = cmd + '-f "' + attachment + '" '
|
||||
cmd = cmd + '-x -n ' + str(encoding)
|
||||
cmd = cmd + '-x -n 1'
|
||||
cmd = cmd + ' "' + message + '"'
|
||||
print cmd
|
||||
#os.system (cmd)
|
||||
|
||||
Reference in New Issue
Block a user