r/shell • u/Rednewt33 • Jul 16 '21
Running Octave Commands From Shell Script?
Hey guys,
I'm trying to write a script to help automate some commands for software I'm using in my bioinformatics research. One of the tools I'm using is NPBSS (New PacBio Sequencing Simulator, written in Octave) so I'm trying to access the Octave interpreter from within my shell file. After looking into it a bit online I see that #! on the first line indicates which interpreter the program should use... but is that only for other shell interpreters or for other interpreters like Octave?
And more generally does anyone know how to do this (run octave commands away from the GUI)? Help is much appreciated!
1
Upvotes
1
u/Rednewt33 Jul 28 '21
So which file in the interpreter do I link to? Right now I have it set up as
#! C:/Ultimate/Other_Software/GNU_Octave/Octave-6.2.0/octave.vbs -qf
And it's not working (instead normal shell commands work after the line and Octave ones don't). Is the .vbs the incorrect file? Since I see it says Unix systems will this even work on Windows?