exec(string or strings)

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

exec(string or strings)

Rainer M. Engel
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
Reply | Threaded
Open this post in threaded view
|

Re: exec(string or strings)

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

Re: exec(string or strings)

Rainer M. Engel
Thanks, Curtis,

that isn't so bad. I only wanted to ask, who knows..

Sincerly,
Rainer


Am 05.08.2013 17:22, schrieb Curtis Rueden:

> 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