I have three scripts. First off I have a submitScript.sh which creates many runScripts_X.sh and submitScripts-X.sub to pass to Condor. The submitScript.sh passes in variables to the submitScripts-X.sh and subScripts_X.sub. Here the ‘X’ is a string containing different variable names based on what variables are passed to the relevant scripts.
Inside the runScript.sh I (amongst other things) am trying to run a root macro. Normally when running the root macro it is done like this:
root -b -q 'Ratios.cxx+("STRINGNAME")'
When I am running locally (i.e on lxplus) but within the runScript.sh it is run like this:
root -b -q Ratios.cxx+(\"STRINGNAME\")
However, I am now trying to run on HTCondor and not sure how to adapt the command for the runScript.sh. I pass in the variables to the runScript.sh as follows for example STRINGNAME, so I was hoping something like:
That sounds like (in addition to the paramater passing?) you have a file location problem. I.e. the file may or may not have been copied to the worker nodes.
Yes the root macro exists and is in the right place.
The problem is passing in the variables correctly due to Condor. I have no issue running the script locally, but the syntax to run on Condor is different, or at least I think it is, and so it will not run.
It isn’t really possible to provide a minimal working example as I am running with four different scripts to produce my output. But I have provided the runscript and the ratios file. However, as I cannot upload .sh files I have changed the runScript to a .cxx file, similary for the submbitScripts I have changed their extensions. I have commented out a lot of stuff in the runScript (it won’t run anyways as the .sub script takes in a tarballed up build and source directory containing the code to run), but at least one can see what I was trying to do.
Currently everything works (i.e the parts commented out), except for running the Ratios macro
To run the script I do
source submitScript.sh
EDIT: I’ve since put the original file names back, the .sub file now has a .txt extension and everything else is .cxx (but should be .sh for the runScript and submitScript)