help-octave
[Top][All Lists]
Advanced

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

Re: Bad interpreter...


From: Geraint Paul Bevan
Subject: Re: Bad interpreter...
Date: Wed, 06 Aug 2003 16:52:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Mike wrote:
> I have done the following:
> I saved as hello.sh the file
> #!octave-2.1.50 -qf
>  printf("Hello,world!\n"); and returning to the turminal I do
>  chmod  +744 hello.sh then trying to run the script with
> a) ./hello.sh -->bad interpreter,permission denied
>  b) hello---> command not found.
>  I run linux 2.4.20.
> Any help? (step-by-step if possible).
>

You need to give the full path to the interpreter:

#!/usr/bin/octave
blah ...

--
Geraint Bevan
Department of Mechanical Engineering
University of Glasgow
Tel: +44 (0)141 330 5917



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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