Dear root experts,
I have several root macros which I want to compile and run in root. I have made a bash script for it.
The simple example of the script is
and it contains following lines
root -b -l <<EOF
To run it, I do in command prompt ./RunMacro_1_to_3.sh
It runs successfully but I want to include one more functionality. I want the script to quit root (.q) after
finishing first macro then call it again compile the second one, run the second one and so on.
My macro is simply doing some calculations and writing the results in a text file.
Please suggest some way to do it.