Re: writing mathematica script files for the math kernel under linux

*To*: mathgroup at smc.vnet.net*Subject*: [mg25105] Re: writing mathematica script files for the math kernel under linux*From*: Albert Retey <albert.retey at visualanalysis.com>*Date*: Sun, 10 Sep 2000 03:14:29 -0400 (EDT)*Organization*: Visual Analysis*References*: <8p9l3p$1v1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

"Ryan VanRiper (--)" wrote: > > Hello, I spoke with a tech support person at wolfram and they said > mathematica supported scripting. However he didnt know anything more > then that. > > Im running mathematica 4 on linux.. Is it possible for the "math" > executable to somehow run a script file that did the following: > > load in a notebook file > evaluate the notebook > then export the results to a text file > > I want to automate this process without sitting and typing things from > the math command line. > > If anyone has some ideas on how to do this please respond. > > Thanks, > Ryan Depends on what you want to do, if you don´t use any of the Frontend functions you can try the following very simple procedure. Convert your Notebook to a *.m file by making all cells to initialization cells and save as special -> package format) and then run math < YourNotebook.nb.m > results You might need to work on the output though... Albert Retey -- Visual Analysis GmbH Internet: www.visualanalysis.com Neumarkter Str. 87 Telefon: 089 / 431 981 0 D-81673 Muenchen Telefax: 089 / 431 981 1