Compile and run from command prompt

A brutal fix …

echo 'gROOT->LoadMacro("macro.C"); macro m; m.Loop(); gSystem->Exit(0);' | root -b -l

… or …

root -b -l <<EOF
.L macro.C
macro m;
m.Loop();
.q
EOF