macro: Redirection in exec( UNIX-binary ) ?
Posted by
Gluender-4 on
Jul 27, 2010; 8:07pm
URL: http://imagej.273.s1.nabble.com/macro-Redirection-in-exec-UNIX-binary-tp3687463.html
Sorry to bother the list once more...
Is it possible to use "redirection" when executing an UNIX-binary from a macro?
For example from OSX-Terminal I write
MyMac:~ me$ theBinary --output=theFile.png < /pathTo/myData
with input file "/pathTo/myData".
From an ImageJ macro
exec( "theBinary", "--output=theFile.png", "<", "/pathTo/myData" );
doesn't do the trick.
Is there a way to redirect standard input to an input file with exec( )?
Best
--
Herbie
------------------------
<
http://www.gluender.de>