I am running various Java benchmarks and would like to archive the results. I execute the (dacapo) benchmark like this:
C:\VM\jre\bin\java -jar C:\benchmarks\dacapo-9.12-bach.jar %arg1% > %time::=%
I pass the type of benchmark in over a parameter, thats what %arg1% is.
You can see that I am redirecting the output to a textfile. Unfortunately, the first and last line of the output is still printed in the console and not into the textfile:
===== DaCapo 9.12 luindex starting =====
===== DaCapo 9.12 luindex PASSED in 2000 msec =====
Especially the last line would be important to have in the text file :)
Is there a trick to force this behavior?