[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running octave .m file from windows batch
From: |
Lester Anderson |
Subject: |
Re: Running octave .m file from windows batch |
Date: |
Thu, 7 Sep 2017 16:49:36 +0100 |
That solved the issue - thanks
On 7 September 2017 at 16:42, Nicholas Jankowski <address@hidden> wrote:
> On Thu, Sep 7, 2017 at 11:05 AM, Lester Anderson <address@hidden>
> wrote:
>>
>> Hello,
>>
>> Is there a trick to getting Octave to run a .m file from within a
>> windows .bat file at the command line?
>>
>> Tried variations of this, but not working (cli, --no-gui etc)
>> C:\Octave\octave-4.2.1\bin\octave.exe --eval test_install_421.m
>>
>> Gives an error on "liboctinterp-4.dll mssing" yet this is in the \bin
>> directory
>
>
>
> call the batch file not the executable. it will pass command line arguments
> to the executable and make sure all proper path and environment variables
> are set.
>
> i.e., i created a testfile.m that just contains 1, 2, 3, 4 ,5 on separate
> lines from the command line in the octave-4.2.1 directory:
>
> octave --persist testfile.m
>
> opens the octave gui and executes the file. the --persist option keeps
> octave open afterwards, otherwise it would only open the --no-gui, run the
> script, and close.
>
> for all of the command line options see:
>
> https://www.gnu.org/software/octave/doc/interpreter/Command-Line-Options.html
>