<html>
    <head>
      <base href="http://fiji.sc/bugzilla/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Exception when running from the command line"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=964#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Exception when running from the command line"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=964">bug 964</a>
              from <span class="vcard"><a class="email" href="mailto:ctrueden@wisc.edu" title="Curtis Rueden <ctrueden@wisc.edu>"> <span class="fn">Curtis Rueden</span></a>
</span></b>
        <pre>Hi, Luc. I tried an up-to-date Fiji with the following script:

import sys
from ij import IJ
print "Hello stdout!"
IJ.log("Hello IJ log!")
sys.exit()

Using the following invocation:

Contents/MacOS/ImageJ-macosx --headless /Users/curtis/hello.py

And the output:

Hello stdout!
Hello IJ log!

And the program terminates as expected.

I am on OS X 10.10.

Does the above script behave the same on your system? If not, yes, please file
a new bug using Help > Report a Bug, to send your system configuration.

Thanks!</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>