I am running a resource extensive notebook, and so I am trying to break it down into a .m file so that I can run it quicker and without using the mathematica interface. The problem is that my notebook needs another package (installed in the usual ~/.Mathematica/Applications/OtherPackage) and I cannot make it load with inside my .m. The usual notebook normally calls the other package as
But if I add this to the beginning of the script and run
$ math -script script.m
The output goes bananas.
On the other hand, if I start
and then run
It loads correctly, and if later I perform
it behaves normally and runs as expected.
My question, is there a way to make my script run in a single go from the command line without having to go to the Tex-Base interface?