Re: --headless not working?

Posted by nickxtsui on
URL: http://imagej.273.s1.nabble.com/headless-not-working-tp5006126p5006138.html

Dear Johanness and ImageJ users/developers:
I think the additional option, --console, did make the difference, and here
is what is displayed on the screen (see inserted image). So I can see the
"Hello world!" is displayed at the end of the execution on the screen.
However, there are so much messages that do not make much sense to me. Is
there any way to silence the console so that it only displays "Hello
world!"?
Also, the redirection seems not working, nothing is saved in output.txt.
Thanks a lot.
Nick



[image: Inline image 1]





On Wed, Jan 15, 2014 at 1:54 PM, Johannes Schindelin <
[hidden email]> wrote:

> Hi Nick,
>
> On Tue, 14 Jan 2014, Nick X. Tsui wrote:
>
> > I am using Fiji on Win7 64. I setup the headless mode, and I use
> > print("Hello world!");   as test.
> >
> > In command line, everything looks right when >fiji HelloWorldMacro.ijm
> > is typed. A window pops up showing "Hellow world!"; However, the
> > prompt is not responding when I type >fiji --headless
> > HelloWorldMacro.ijm. There is no error message showing up, just
> > nothing.
> >
> > Anyone has any idea where I am doing wrong? Thanks!
>
> On Windows, you might need to use the --console option to make it show up.
> Alternatively, use redirection (fiji --headless hello.ijm > output.txt).
>
> Ciao,
> Johannes
>
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

headlessScreenshot.jpg (558K) Download Attachment