Save output of interactive mode to file

Hi,

this is a very basic question about interactive mode.
I installed Geant and example B1 via Visual Studio. In the VS PowerShell, I run exampleB1.exe in interactive mode. Now in the Geant UI I set /tracking/verbose 1 and do /run/beamOn X. In the VS PowerShell, the G4Track Information is printed. Can I print this information to a file? E.g. like /run/beamOn 1 > output.txt?

_Geant4 Version:_11.2.1
_Operating System:_Win11

Not directly as interactive, however, you can do similar by calling a macro and writing output in ascii file as;

./exampleB1 run1.mac > output.txt

VRS

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.