MathGroup Archive 2006

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

Search the Archive

Re: Batch evaluation of multiple notebooks?

  • To: mathgroup at
  • Subject: [mg69315] Re: Batch evaluation of multiple notebooks?
  • From: Roland Franzius <roland.franzius at>
  • Date: Wed, 6 Sep 2006 04:28:55 -0400 (EDT)
  • Organization: Universitaet Hannover
  • References: <edjhj7$m01$>
  • Sender: owner-wri-mathgroup at

Blackadder schrieb:
> Hi all,
> over the last ten hours I've been trying to solve a problem that seemed
> simple at first. I have several dozen notebooks, each with nearly
> identical contents. The only differences between the notebooks are the
> data values comprised in certain data lists within each notebook. What
> I need to do now is to evaluate all notebooks.
> I've tried to accomplish this via a "master" notebook that contains a
> list of the names of all notebooks to be evaluated. The master notebook
> processes the list of file names in a for loop and utilizes the
> standard notebook manipulation functions, e.g. NotebookOpen[],
> SelectionMove[], SelectionEvaluate[], and finally NotebookClose[].
> The problem here is that the Mathematica front end does not wait for
> the kernel to finish evaluation and vice versa. This regularly results
> in NotebookClose[] being called for the opened notebook before this
> notebook has fully evaluated.
> My question is: How can I batch evaluate an arbitrary number of
> notebooks without using MathLink? Is this even possible?

The good old semaphore technics from mainframe times:

Let each Notebook create a "I am finished (nr xx).txt" file and hold the 
main loop idling before executing the next notebook until the expected 
file does show up to exist.


Roland Franzius

  • Prev by Date: Re: Batch evaluation of multiple notebooks?
  • Next by Date: Re: Re: Please help: How to use Mathematica to get Parametric solution for a transcendental equation?
  • Previous by thread: Re: Batch evaluation of multiple notebooks?
  • Next by thread: Re: Batch evaluation of multiple notebooks?