[Top][All Lists]

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

Re: Octave scripts in Mac OSX

From: Vic Norton
Subject: Re: Octave scripts in Mac OSX
Date: Fri, 1 Jul 2011 22:04:17 -0400

Here's how I handle this situation, Daryl.

  1. Open /Applications/Utilities/
  2. In Terminal do
      $ cd /usr/local/bin
      $ sudo ln -s /Applications/

Now you can use the standard shebang line
  #!/usr/local/bin/octave -qf
to run an Octave script.



On Jun 29, 2011, at 10:37 AM, Daryl Lee wrote:

> I'm plowing my way through the newly released "GNU Octave for Beginners" 
> book, and I have run into a question that I think this group should be able 
> to answer.  I got to Chapter 4 and the section telling "GNU/Linux and MacOS X 
> users" how to add the shebang line to their script so it can be executed from 
> the bash shell.
> In Mac OSX, from the shell I type ($ is shell prompt)
> $ /Applications/
> and get an Octave environment, as expected.  But when I write a script with 
> this as the first line:
> #! /Applications/ -qf
> set the permissions, and execute the script, I get a bash syntax error on the 
> first line of Octave script following the shebang line.  I've tried it with 
> and without the -qf.  It works as advertised on Linux, so I'm sure it's a Mac 
> OSX issue.
> What would be an effective way to launch Octave scripts from the Mac OS X 
> terminal command line?
> -- 
> Daryl Lee
> _______________________________________________
> Help-octave mailing list
> address@hidden

reply via email to

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