Hi Soren,
Thanks for your reply. Your solution requires the user to have octave installed as you are referring to making the script (m file) executable by loading octave while I want to create a standalone file (please see my original post) which does not require the user to install octave, that is a binary executable.
Cheers, Mike.
--- On Wed, 5/13/09, Søren Hauberg <address@hidden> wrote:
From: Søren Hauberg <address@hidden> Subject: Re: Creating a standalone executable:Debian Lenny, P6 To: "Mike B." <address@hidden> Cc: address@hidden Date: Wednesday, May 13, 2009, 3:49 PM
tir, 12 05 2009 kl. 19:40 -0700, skrev Mike B.: > Hi
All, > > I'm using Debian Lenny Linux on an intel P6. Can I convert an octave > script file (myfile.m) into a standalone executable such that a user > will simply run: > ./myfile > without the user having to install octave and any function files > called by myfile.m? . >
You could something like
#!/usr/bin/env octave
to the top of your file and make it executable using 'chmod'. That should do the trick
Søren
|