Hi,
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:
_STRINGNAME_=STRINGNAMESED
root -b -q Ratios.cxx+(\"${_STRINGNAME_}\")
would work, but it does not. I keep getting errors like:
condor_exec.exe: line 97: syntax error near unexpected token `('
I am not sure how to correctly pass in the variables.
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided