MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: running notebook from command line...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59367] Re: [mg59343] running notebook from command line...
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Sun, 7 Aug 2005 03:47:00 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Lee, 
> I have a slow-running model that I want to run from a 
> grid/parallel computing center at my university which 
> requires that my notebook be "executable from the command 
> line" (by staff not familiar with 
> mathematica) rather than the Mathematica front end.   I've 
> read the help 
> files, but I just can't figure out how to make this happen.
> 
> The structure of my notebook is as follows:
> 
> [ Initialization cells that set values for parameters ] [ 
> Initialization cells that define various functions ] [ main 
> loop that runs the model and writes results out to files ]
> 
> Can anyone suggest how I can modify the notebook to be 
> command line executable and how to run it from the command line?

You can store the notebook in another text file & have the kernel operate on
this using

	math < yourfile.m > outputdata.dat &

You can get an idea of specific formats from *.m packages provided with
Mathematica.

Regards,

Dave.


  • Prev by Date: Re: Need portable code to open Notation palette.
  • Next by Date: Re: String[bring] vs "bring"
  • Previous by thread: Re: running notebook from command line...
  • Next by thread: Re: running notebook from command line...