Prevent results going to stdout in -batch call?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Prevent results going to stdout in -batch call?

Mark J. Chopping
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
Reply | Threaded
Open this post in threaded view
|

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

John Hayes
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
Reply | Threaded
Open this post in threaded view
|

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

Mark J. Chopping
In reply to this post by Mark J. Chopping
Hi John,

Thanks -- I may have to resort to discarding to /dev/null -- though the macro does write out other, diagnostic information.  

Mark

Mark Chopping
Montclair State University

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