Login  Register

Re: Prevent results going to stdout in -batch call?

Posted by John Hayes on Aug 21, 2015; 2:28am
URL: http://imagej.273.s1.nabble.com/Prevent-results-going-to-stdout-in-batch-call-tp5014091p5014092.html

Hi Mark,

You may want to look into redirecting to /dev/null if you're on linux or OS
X. You may also want to try &> /dev/null. I'm assuming you do not want to
see ANY stdout or stderr though.

HTH,

John
On Aug 20, 2015 10:27 PM, "Mark Chopping" <[hidden email]>
wrote:

> Greetings list,
>
> Is there any way to prevent results going to stdout in -batch mode?  This
> is not just doing setBatchmode(true); the command is something like:
>
> ~/ImageJ/jre/bin/java -Xmx2048m -jar ~/ImageJ/ij.jar -ijpath ~/ImageJ
> -batch mymacro.ijm arg1:arg2 > log_file
>
> It's creating huge log files with temporary results tables that I do not
> need. Thanks.
>
> Mark
>
> Mark Chopping
> Montclair State University
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html