Again on batch mode

Hi,
i need to run a program in batch mode via LSF. In order to accomplish this i’ve created a small script called produci_diff like this:

{
gROOT->ProcessLine(".L gamma.cpp++");
gROOT->ProcessLine(“lanciarun(8207,0,4)”);
gROOT->ProcessLine(“lanciarun(8207,1,4)”);
gROOT->ProcessLine(“lanciarun(8207,2,4)”);
}

and another file called produci_diff.batch like

bsub -q 1nw ‘root -b -q -l produci_diff’

if i run the program with the simple line

$ root -b -q -l produci_diff

everything works fine, while with produci_diff.batch the program ends even before performing the ‘.L gamma.cpp++’ command.

Is anything wrong with this structure?

Regards,
m

Hi,
try bsub -q 1nw root -b -q -l produci_diff (i.e. without the ticks).
Axel.

Hi Axel,
unfortunately it gives the same result.

m

Hi,
i’ve tried putting root -b -l … and the rest in a separate executable file (filedata) and then runninng

bsub -q 1nw filedata

but it again stops without producing anything.

Regards,
m

Hi Marco,

when running “bsub -q 1nw root -b -q -l produci_diff”, are you sure that the batch job can find the file produci_diff, on whatever machine it runs the job? Can you do “bsub -q 1nw ls produci_diff” and check?

Axel.

Hi Axel,
your last suggestion helped me in finding the error… Actually all the paths have to be absolute path, so that the “produci_diff” must be actually “/afs/cern.ch/user/c/…/produci_diff”.

Thanks for the help,
marco