Thursday, February 16, 2012

How to run Mathematica in batch mode

  1. Let's say your code is saved in myscript.nb. First you have to convert it to plain text by copy and paste from Mathematica. Assume the plain text version is saved in myscript.m.
  2. Next, run the script in the terminal as follows:
    math -noprompt -script myscript.m

1 comment:

Mathematica said...

Its really tremendous news. I think its a great job by them. Thank you for sharing with us. I think it would be helpful for all.