I’m calling ImageJ/Fiji from the Linux console to run a macro. For example, I have the macro
and I’m calling with
$ imagej -macro hello.ijm
I would like to have ImageJ/Fiji’s log window redirected to the Linux console because my macro will close ImageJ/Fiji.
The Scripting Headless page says
--consoleargument allows to have
IJ.logand error statements returned to the console window.
When I run
$ imagej --console -macro t.ijm
the redirect does not work.
If I run
$ imagej --headless --console -macro t.ijm
the redirect will work. Unfortunately, my macro uses ROI Manager that does not work headless (as mentioned in ROI Manager does not work headless · Issue #153 · imagej/imagej-legacy · GitHub).
Do you know another way that I can redirect ImageJ/Fiji print macro to Linux console? Thanks!