help-octave
[Top][All Lists]
Advanced

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

Re: running script


From: Sergei Steshenko
Subject: Re: running script
Date: Mon, 11 Jun 2012 11:32:39 -0700 (PDT)




----- Original Message -----
> From: wayne schlemitz <address@hidden>
> To: address@hidden
> Cc: 
> Sent: Monday, June 11, 2012 5:55 PM
> Subject: running script
> 
[snip]
> in script #! /home/wayne/math.m
[snip]
> 
> Thank you,
> Wayne ------------- address@hidden
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
> 

This is wrong by construction.

The idiom is: put into your script:

#!/path/to/interpreter <flag_for_interpreter_if_any>

<code_to_be_interpreted_by_the_interpreter>

, and the script needs to have have executable permission if you are going to 
invoke it as

./script

or as

/full/path/to/script
.

The "#!/path/to/interpreter <flag_for_interpreter_if_any>" should the very 
first line in the script.

Regards,
  Sergei.



reply via email to

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