MathGroup Archive 2011

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

Search the Archive

MathKernel -script in MacOSX

  • To: mathgroup at
  • Subject: [mg116297] MathKernel -script in MacOSX
  • From: "quendor at" <cdaniels at>
  • Date: Thu, 10 Feb 2011 05:22:13 -0500 (EST)

I am using Mathematica Home Edition 8.0 on Mac OSX.
I am attempting to use 'MathKernel -script file.m' to evaluate a script, 
but have been unsuccessful.

file.m is a text file containing: 2 + 2

'MathKernel -script file.m' fails to produce any output or a failure 

I have tried this under the standard Terminal application as well as X11 
with the same result. On the other hand,

'cat file.m | MathKernel -noprompt ' outputs '4' as expected.

Moreover, 'MathKernel', with no options generates a Mathematica Shell as 

Not sure what I am missing.



  • Prev by Date: k-permutations enumeration
  • Next by Date: Applying function only if the output is positive
  • Previous by thread: Re: k-permutations enumeration
  • Next by thread: Re: MathKernel -script in MacOSX