help-octave
[Top][All Lists]
Advanced

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

Re: invoking octave from command line with ubuntu


From: Peter A. Gustafson
Subject: Re: invoking octave from command line with ubuntu
Date: Tue, 27 Nov 2007 12:31:25 -0500
User-agent: KMail/1.9.7

On Tuesday 27 November 2007 11:53:12 Ólafur Jens Sigurðsson wrote:
> Hi Nikkos
>
> to run octave code without getting into the octave shell then run
>
> octave --eval "whatevercommandyouwanttorun"
>
> Then after executing the command octave will exit and you get your
> shell prompt again.
>
> HTH
>
> Oli

Alternatively, you could add
#!/usr/bin/octave

To the first line of the file, make the file executable (chmod 755 
filename.m), then execute it on the command line (./filename.m).

Pete



reply via email to

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