Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15812
| X-FeedAbuse | http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.16.109 |
|---|---|
| Path | csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!nospam.fr.eu.org!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!news.glorb.com!news2.glorb.com!news.mv.net!newspump.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail |
| From | Armand Tamzarian <mike.honeychurch@gmail.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: MathKernel -script in MacOSX |
| Date | Fri, 11 Feb 2011 09:16:43 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <ij2upr$7o7$1@smc.vnet.net> (permalink) |
| References | <ij0e7t$9cg$1@smc.vnet.net> |
| Lines | 32 |
| NNTP-Posting-Date | 11 Feb 2011 09:20:40 GMT |
| NNTP-Posting-Host | d6b801e1.news.twtelecom.net |
| X-Trace | DXC=E[o[MXQ3DA0KU3]3@_L3F>C_A=>8kQj6=2f3;U>_oji9hIFUg1kYc11EFiONJ7[Go63Nf]NeXf8f0 |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:15812 |
Show key headers only | View raw
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