user3813057 user3813057 - 1 year ago 87
Bash Question

How to run octave script from shell at launch

I'm using Ubuntu system. To run MATLAB script at launch, I can type

matlab -nodesktop -r "run ./my_program.m"

How can I achieve the same function on Octave, like
octave --no-gui -some_command

I've read this post and this post. They did not answer my question.

Answer Source

As mentioned in one of the comment, one solution is:

octave --persist my_program.m