MathGroup Archive 2012

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

Search the Archive

Re: Trouble with MathKernel

  • To: mathgroup at
  • Subject: [mg125649] Re: Trouble with MathKernel
  • From: Murray Eisenberg <murray at>
  • Date: Sun, 25 Mar 2012 00:16:44 -0500 (EST)
  • Delivered-to:
  • References: <>
  • Reply-to: murray at

I'm going to assume the setup was the same with Mathematica 7 as for 
Mathematica 8: the kernel executable is hidden inside the Mac package 

If you right-click (or Ctrl-click) on that item in Finder, select Show 
Package Contents. In the new Finder window that opens, look at


That's the executable you actually want. So, for example, if you type in 
a Terminal command line:


then you'll get an interactive command-line session. And if you have a 
file batch.m of legitimate Mathematica expressions, then the following 
_will_ work:

   /Applications/ <batch.m 

(assuming your current directory is the location of batch.m, of course).

Now just either add 
/Applications/ to your PATH or 
make an alias for it in the directory where you're working (or some such 

On 3/24/12 3:01 AM, Cisco Lane wrote:
> I'm running Mathematica Home edition v. 7 on a Mac Intel Core 2 Duo.
> I'm trying to run a notebook in the background. I have saved the notebook as a package (batch.m) but, in a terminal, when I type:
> MathKernel<  batch.m>  batch.out
> the batch.out file says "MathKernel: no such file or directory". Same thing happens if I substitute "math" for "MathKernel".
> Any help would be appreciated.

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: calculation error in series
  • Next by Date: Re: new functional operator
  • Previous by thread: Trouble with MathKernel
  • Next by thread: Interpolate 2D on irregular grid