ROOT on batch system

Dear all,

I am not sure if this is the right forum to ask this question, but it’s a rather straight forward one:

I have macro “macro.C” that I would like to run on the CERN batch system. Could you tell me how this is done properly? How I access the output of the macro?