[Top][All Lists]

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

Re: Executing octave from (Macintosh)

From: alainc
Subject: Re: Executing octave from (Macintosh)
Date: Thu, 1 Nov 2007 02:04:03 -0700 (PDT)

John W. Eaton wrote:
> I think you should be able to do
>   cd /usr/local/bin
>   ln -s /Applications/
> and then create a script with the contents (say doit):
>   #! /usr/local/bin/octave -qf
>   1 + 1
> and then
>   chmod a+x doit
>   ./doit


That doesn't seem to work from the shell :
with the simple shebang line 

  #!/usr/local/bin/octave -qf

I get the following error : 
  ./doit.oct: line 3: 1: command not found

while, when run from BBedit, it works, although not honoring the -q option.


  octave -q doit.oct 

works fine,

and the following shebang works too :

#!/bin/sh /usr/local/bin/octave -qf

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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