Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15812
| From | Armand Tamzarian <mike.honeychurch@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: MathKernel -script in MacOSX |
| Date | 2011-02-11 09:16 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ij2upr$7o7$1@smc.vnet.net> (permalink) |
| References | <ij0e7t$9cg$1@smc.vnet.net> |
On Feb 10, 9:21 pm, "quen...@nandor.net" <cdani...@nandor.net> wrote: > 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 > message. > > 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 > expected. > > Not sure what I am missing. > > Thanks, > > Bryan I don't use the terminal directly but call it in applescripts where the following works do shell script "/Applications/Mathematica.app/Contents/MacOS/ MathKernel -run "<</path/to/script file.m"" Mike
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: MathKernel -script in MacOSX Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-02-11 09:16 +0000
csiph-web