help-octave
[Top][All Lists]
Advanced

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

Re: running script


From: Ben Abbott
Subject: Re: running script
Date: Wed, 13 Jun 2012 11:26:39 -0400

** please response at the bottom and reply-all so that those arriving late can 
follow along **

On Jun 13, 2012, at 10:33 AM, wayne schlemitz wrote:

> --- On Mon, 6/11/12, Ben Abbott <address@hidden> wrote:
> 
>> From: Ben Abbott <address@hidden>
>> Subject: Re: running script
>> To: "wayne schlemitz" <address@hidden>
>> Cc: address@hidden
>> Date: Monday, June 11, 2012, 11:18 AM
>> 
>> On Jun 11, 2012, at 10:55 AM, wayne schlemitz wrote:
>> 
>>> I am starting to run scripts for octave 2.6 and have a
>> problem calling the script. Have tried the following:
>>> octave math.m
>>> octave math
>>> in octave ./math or ./math.m or math.m or math
>>> in script #! /home/wayne/math.m
>>> 
>>> The errors I receive are that incorrect calling of
>> script. Have experience with Linux and used what is shown in
>> the ref. manual.
>>> 
>>> Do you have any suggestions?
>>> 
>>> Thank you,
>>> Wayne 
>> 
>> I assume you meant Octave 6.2 ?
>> 
>> Please cut-n-paste the error, and tell us exactly what you
>> did to get it. That way we can try to reproduce it
>> ourselves.
>> 
>> Ben
> 
> Ben :
> I think I need a command in linux to find where octave is located. In script 
> now named test.m have used /usr/local/octave, ~/test, 
> /usr/local/share/octave, /usr/bin/octave with #! have received this error-- 
> error 1064 (42000) also have chmod 465 test so I can use it.
> have tried /usr/share/octave/3.2.4/m/miscelaneous/test.m


If I infer correctly, you're trying to run an octave script from your shell's 
command prompt. I've attached a test.m script that works for me. I think your 
mistake is that you need to point to "/usr/local/bin/octave".

Also, for chmod, maybe you'd be better off with 755? This allows read, write 
and execute by the owner, read and execute by group members, read and execute 
by others.

Ben

Attachment: test.m
Description: Binary data


reply via email to

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