Re: problems with running macros from the command line
Posted by Albert Cardona on
URL: http://imagej.273.s1.nabble.com/problems-with-running-macros-from-the-command-line-tp3701388p3701390.html
Hi Dscho,
No, I only forgot "-batch" when writing the email to the list (since I can't
copy, or not easily, from the tty).
> I found a trick which makes it work here: set DISPLAY to empty:
>
> $ DISPLAY= java -classpath ij.jar ij.ImageJ -batch macros/any.txt
I have tried this, and nothing prints in a tty. Perhaps the job is done but
lost, I would have to setup a different kind of macro for that (a macro that
does I/O of some sort).
>
> Having said that, I think it is a bug to try to initialize X11 headlessly.
I don't quite understand what you mean. The java is buggy and shouldn't init
awt and swing peers when headless?
Albert