Re: macro: exec( UNIX-binary )
Posted by
Gluender-4 on
Jul 27, 2010; 5:39pm
URL: http://imagej.273.s1.nabble.com/Doubts-about-using-the-Imagej-library-tp3687480p3687483.html
The problem is solved, at least what concerns the UNIX-binary's main
function. It is only the help page that isn't shown by use of "-h".
Strange.
>Dear experts,
>
>very much I should like to receive some advice concerning calling a
>UNIX-binary from an ImageJ (1.44) macro by use of "exec( )" on MacOS
>10.4.
>
>The UNIX-binary has been installed with MacPorts and resides at
>
> /opt/local/bin/
>
>From the OSX-Terminal I can call, e.g. its help text, as usual by
>
> MyMac:~ me$ theBinary -h
>
>or by
>
> MyMac:~ me$ /opt/local/bin/theBinary -h
>
>
>
>From an ImageJ macro I can open (start) the UNIX-binary by
>
> exec( "open", "/opt/local/bin/theBinary" );
>
>but I can't call, e.g. its help text, neither by
>
> exec( "theBinary", "-h" );
>
>nor by
>
> exec( "/opt/local/bin/theBinary", "-h" );
>
>
>What am I doing wrong?
>
>Any help is highly appreciated!
Best
--
Herbie
------------------------
<
http://www.gluender.de>