Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15812 > unrolled thread

Re: MathKernel -script in MacOSX

Started byArmand Tamzarian <mike.honeychurch@gmail.com>
First post2011-02-11 09:16 +0000
Last post2011-02-11 09:16 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: MathKernel -script in MacOSX Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-02-11 09:16 +0000

#15812 — Re: MathKernel -script in MacOSX

FromArmand Tamzarian <mike.honeychurch@gmail.com>
Date2011-02-11 09:16 +0000
SubjectRe: MathKernel -script in MacOSX
Message-ID<ij2upr$7o7$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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web