Skip to content

Commit

Permalink
Merge pull request cms-sw#20 from fruboes/Run2HSCP_v9_tf
Browse files Browse the repository at this point in the history
Dont hang on qsub call, since it expects input
  • Loading branch information
quertenmont committed Dec 2, 2015
2 parents 77b1d74 + f20aff5 commit 0dd3ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SUSYBSMAnalysis/HSCP/python/LaunchOnCondor.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ def SendCluster_Create(FarmDirectory, JobName):

#determine what is the submission system available, or use condor
if(subTool==''):
if( commands.getstatusoutput("bjobs")[1].find("command not found")<0): subTool = 'bsub'
elif(commands.getstatusoutput("qsub")[1].find("command not found")<0): subTool = 'qsub'
if( not commands.getstatusoutput("which bjobs")[1].startswith("which:")): subTool = 'bsub'
elif( not commands.getstatusoutput("which qsub")[1].startswith("which:")): subTool = 'qsub'
else: subTool = 'condor'
if(Jobs_Queue.find('crab')>=0): subTool = 'crab'

Expand Down

0 comments on commit 0dd3ba3

Please sign in to comment.