user3813057 user3813057 - 2 years ago 160
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download