help-octave
[Top][All Lists]
Advanced

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

Re: Octave Startup Question


From: Jaroslav Hajek
Subject: Re: Octave Startup Question
Date: Fri, 30 May 2008 18:24:32 +0200

On Fri, May 30, 2008 at 5:37 AM, tallankybstrd <address@hidden> wrote:
>
> Hello,
>
> I searched the forums and could not find an answer to my question, so I'm
> very
> sorry if it has already been answered.  I was wondering whether a certain
> functionality was possible in octave. Essentially, I would like to create a
> command line option that alters what path(s) octave adds on startup. Here is
> ultimately what I am trying to accomplish. I would like a call similar to
> this:
>
>  $> octave --math246
>
> to begin octave with the octave command similar to this:
>
>  octave$> addpath('/home/math246/mfiles')
>
> Is something like this possible/plausible?
>
> I would imagine it has something to do with the file octaverc, but I do not
> know how I could add some command line option statements. Any help
> would be appreciated.

I'm not sure I understand precisely what you want to do.
The command
octave --eval "<some code>" --persist
makes Octave evaluate <some code>, then become interactive.
You can instruct Octave to skip initial files using `--norc' or
`--no-init-file'.


>
> Thanks.
> --
> View this message in context: 
> http://www.nabble.com/Octave-Startup-Question-tp17551010p17551010.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>



-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

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