User Tools

Site Tools


sge:mathematica_batch

This is an old revision of the document!


How to run Mathematica with batch files

The short version is:

  1. Start mathematica in graphical/interactive mode as usual
  2. Insert your formulas in the notebook (you can ask for the results, if you like)
  3. Select all the cells you want to use in the script and then click on Cell → Cell Properties → Initialization Cell from the Menu bar
  4. Click on File → Save As and a dialog window will appear
  5. Select Mathematica Package (*.m) from the File of type drop down menu.
  6. Once edited the name of the file, save it.

Now you'll have your Mathematica script file ready to be used, follow the standard instructions on the sge page in order to do so. on the same page you'll find and example script to submit Mathematica scripts file to the cluster.

sge/mathematica_batch.1242212620.txt.gz · Last modified: 2009/05/13 13:03 by damir