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: [mg59378] Re: [mg59343] running notebook from command line...
  • From: stephen layland <layland at wolfram.com>
  • Date: Sun, 7 Aug 2005 03:47:12 -0400 (EDT)
  • References: <200508060529.BAA01157@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

and thus spake Lee Newman [2005.08.06 @ 01:12]:
> Hello,
> 
> 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?

Select all cells in the notebook and set them to 'initialization' cells. 

Save the notebook.  When asked if you want to create a package, say yes.

Give the resulting .m (not .nb) to the sysadmins to run with the
command

    /path/to/math < myfile.m

--
/*------------------------------*\
|        stephen layland         |
|    Documentation Programmer    |
| http://members.wri.com/layland |
\*------------------------------*/


  • Prev by Date: Re: Hankel matrix?
  • Next by Date: Re: Hankel matrix?
  • Previous by thread: running notebook from command line...
  • Next by thread: Re: running notebook from command line...