help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: script octave on mac osx


From: Vic Norton
Subject: Re: script octave on mac osx
Date: Thu, 30 Jul 2009 16:52:56 -0400

You can use the shebang line

#!/usr/local/bin/octave

in Octave scripts if

1) You put the "Octave" application (in "octave.app.dmg" from
    <http://octave.sourceforge.net>) into your Applications folder, and,

2) In Terminal, you do
    $ sudo ln -s \
       /Applications/Octave.app/Contents/Resources/bin/octave \
       /usr/local/bin

The nice thing about this approach is that whenever you drop a new version
of the Octave application into your Applications folder, the shebang line

#!/usr/local/bin/octave

will automatically use that version.

Regards,

Vic

On Jul 30, 2009, at 10:51 AM, micmac wrote:


Hello,
I would like to make an octave script. How is it possible to do that on mac
osX.

it is said to use #! /bin/octave

but that seems to be the common path for linux, but what for mac osx? I
installed octave with macports.
I have no idea where the executable is now...

thanks a lot!!


Julien


reply via email to

[Prev in Thread] Current Thread [Next in Thread]