|
Bugzilla – Bug 964 |
Exception when running from the command line |
Last modified: 2014-12-16 08:43:01 CST |
| ⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
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!Maybe there's no more --run option but it still does in the ImageJ-linux64 --help output: --run <plugin> [<arg>] run <plugin> in ImageJ, optionally with arguments With '-run' I was not able to pass parameters and ImageJ does not exit on headless exception (occuring when a specified path is missing and the file dialog is instantiated). Using '-macro' ImageJ does not exit on headless exception neither ('run("Quit");' did not help) and using '-batch' ImageJ get stuck with 100% CPU usage ... However at first glance it seems that running the plugin from a jython script with 'ImageJ-linux64 --headless <script>' is working - parameters can be specified and ImageJ exits on failure - so I can survive without '--run'. Thanks for all :-)