Fischer, Max (SCC)
unread,Aug 31, 2015, 7:21:48 AM8/31/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grid-c...@googlegroups.com
Hi folks,
has anybody used the event/scripts to do something with the output from jobs?
I was trying to ‚tee‘ GC output for multiple sites with an „on output“ script, but the SE_OUTPUT_PATTERN / GC_SE_OUTPUT_PATTERN variable is not available to the script [1]. Any other option then grep'ing the gc.stdout of the job to get such variables?
Cheers,
M
[1]
2015-08-31 13:19:55 - Job 328 state changed from DONE to SUCCESS (runtime 1h 19min 15sec)
Traceback (most recent call last):
File "/nfs/dust/cms/user/mfischer/calib/eawt/gc_clone_output.py", line 66, in <module>
output = subprocess.check_output(args.copy_via + resolve_transfer(args.source_storage, args.dest_storage))
File "/nfs/dust/cms/user/mfischer/calib/eawt/gc_clone_output.py", line 58, in resolve_transfer
output_name = os.environ["GC_SE_OUTPUT_PATTERN"]
File "/usr/lib64/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'GC_SE_OUTPUT_PATTERN'