From 0878b5305a1bdd39f3370943f106be59956ab4bf Mon Sep 17 00:00:00 2001 From: Nicolo Trevisani Date: Tue, 27 Feb 2024 15:21:04 +0100 Subject: [PATCH] Update batchTools.py Define the EOS_MGM_URL environment variable in all executables running on lxplus. --- Tools/python/batchTools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/python/batchTools.py b/Tools/python/batchTools.py index 99bc886d3..9d55079ef 100644 --- a/Tools/python/batchTools.py +++ b/Tools/python/batchTools.py @@ -115,10 +115,11 @@ def __init__ (self,baseName,prodName,stepList,targetList,batchSplit,postFix='',u jFile.write('#$ -q all.q\n') jFile.write('#$ -cwd\n') + jFile.write('export EOS_MGM_URL=root://eoscms.cern.ch\n') jFile.write('export X509_USER_PROXY=/afs/cern.ch/user/'+os.environ["USER"][:1]+'/'+os.environ["USER"]+'/.proxy\n') if 'latino' in hostName: jFile.write('export X509_USER_PROXY=/eos/user/'+os.environ["USER"][:1]+'/'+os.environ["USER"]+'/.proxy\n') - jFile.write('export EOS_MGM_URL=root://eoscms.cern.ch\n') + elif "pi.infn.it" in socket.getfqdn(): jFile.write('#$ -N '+jName+'\n') jFile.write('export X509_USER_PROXY=/home/users/'+os.environ["USER"]+'/.proxy\n')