109 larbatch_utilities.test_kca()
113 if os.environ.has_key(
'X509_USER_CERT')
and os.environ.has_key(
'X509_USER_KEY'):
114 cmd=[
'voms-proxy-init',
116 '-cert', os.environ[
'X509_USER_CERT'],
117 '-key', os.environ[
'X509_USER_KEY'],
118 '-voms',
'%s:/%s/Role=%s' % (larbatch_utilities.get_experiment(), larbatch_utilities.get_experiment(), larbatch_utilities.get_role())]
120 subprocess.check_call(cmd, stdout=-1, stderr=-1)
126 cmd=[
'voms-proxy-init',
130 '%s:/%s/Role=%s' % (larbatch_utilities.get_experiment(), larbatch_utilities.get_experiment(), larbatch_utilities.get_role())]
131 jobinfo = subprocess.Popen(cmd, stdout=subprocess.PIPE,
132 stderr=subprocess.PIPE)
133 jobout, joberr = jobinfo.communicate()
135 if rc != 0
and rc!= 1: