help-octave
[Top][All Lists]
Advanced

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

Re: Executing octave from Octave.app (Macintosh)


From: alainc
Subject: Re: Executing octave from Octave.app (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/Octave.app/Contents/Resources/bin/octave
> 
> and then create a script with the contents (say doit):
> 
>   #! /usr/local/bin/octave -qf
>   1 + 1
> 
> and then
> 
>   chmod a+x doit
>   ./doit
> 
> 

Hi, 

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.

whereas 

  octave -q doit.oct 

works fine,

and the following shebang works too :

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

Alain
-- 
View this message in context: 
http://www.nabble.com/Executing-octave-from-Octave.app-%28Macintosh%29-tf4562609.html#a13525224
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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