Submit ROOT macros to LSF

Hi,
I would like to compile and submit ROOT macros to LSF.
In the macro.C file I have 4 different macros, l1(string nrun) l2(strig nrun) acc(string nrun) and ana(string nrun). The last is the main one and calls all the others, taking as input value the run number:

void ana(string nrun) {

l1(nrun)
l2(nrun)
acc(nrun)

}

Is it possible to compile macro.C file and execute it (ana) in a tcsh shell giving an input parameter?

Thanks

Hi,
I believe renaming macro.C to ana.C and running root -l -b -q ana.C+(“1234”) does what you need (1234 is an example of a run number).
Axel.