Octave

Dear Wise & Powerful Masters of OS X,

Octave was recommended to me. I downloaded octave-3.2.3-i386.dmg & installed it. It does run. But, I would like to pipe commands into octave in the future. I would like to do something like this:

$ echo '2+3'|octave

What would be the best way to pipe commands into octave? What sort of modifications would make this work? Is there another version of octave that would allow commands to be piped in?

Your humble Macintosh user,


Kurt

MacBook Air, Mac OS X (10.6)

Posted on Feb 3, 2011 9:18 AM

Reply
2 replies

Feb 3, 2011 11:18 AM in response to Kurt Sakaeda

That is just a pre-build application wrapper built by volunteers. If you downloaded the actual source and built it yourself, you wouldn't have such trouble finding the executable and using it on the command line.

I looked at the wrapper you downloaded and wasn't too impressed. The actual octave executable should be at: /Applications/Octave.app/Contents/Resources/bin/octave

Feb 3, 2011 1:25 PM in response to etresoft

Dear Etresoft,

It works=^D

Thank you.

Your humble OS X user,


Kurt


$ echo "2+3"|/Applications/Octave.app/Contents/Resources/bin/octave
GNU Octave, version 3.2.3
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.

Octave was configured for "i386-apple-darwin8.11.1".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug@octave.org> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

ans = 5

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Octave

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.