Sorry for a silly question. But. Suppose I want to do some root work in batch mode here at CERN.
So, I type:
bsub root -b -q myscript.C
But how to make log file with root output?
bsub root -b -q myscript.C > mylog
bsub 'root -b -q myscript.C > mylog’
seems doesn’t work properly.
In regard to the screen output (stdout, stderr), root acts (as far as I know) exactly as any other unix process.
From a bash prompt
would store the stdout and stderr output in mylog.
I do no know anything about bsub, however you may want to check it’s documentation to find out if it says anything about capturing the output.