Login  Register

Re: exec(string or strings)

Posted by ctrueden on Aug 05, 2013; 3:22pm
URL: http://imagej.273.s1.nabble.com/exec-string-or-strings-tp5004299p5004306.html

Hi Rainer,

> I like the built in exec function of ImageJ. Is there a way to get the
> STDERR back instead of the STDOUT?

Nope, ImageJ's exec() macro function is hard coded to return STDOUT.

But you can write a wrapper script that does "2>&1" and then call that
wrapper script from ImageJ.

Regards,
Curtis


On Mon, Aug 5, 2013 at 5:05 AM, Rainer M. Engel <[hidden email]> wrote:

> I like the built in exec function of ImageJ. Is there a way to get the
> STDERR back instead of the STDOUT?
>
> I tried "2>&1" i.e. but that kicked me anywhere else and nothing came back.
>
> Best Regards,
> Rainer
>
> --
> Rainer M. Engel, Dipl. Digital Artist
> scientific|Media GbR
> Pichelsdorfer Str. 143
> 13595 Berlin
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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