Re: Running MathematicaScript in Mac Terminal
- To: mathgroup at smc.vnet.net
- Subject: [mg124968] Re: Running MathematicaScript in Mac Terminal
- From: David Reiss <dbreiss at gmail.com>
- Date: Wed, 15 Feb 2012 04:40:42 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <jhdhbj$he1$1@smc.vnet.net>
It turns out that MathematicaScript is located here (assuming your
Mathematica is located in /Applications):
/Applications/Mathematica.app/Contents/MacOS/
rather than in /usr/local/bin
Try pointing there in your script and let the MathGroup know if it
then works.
--David
On Feb 14, 6:42 am, Murta <rodrigomur... at gmail.com> wrote:
> Hi All
> I use Mathematica 8 Home edition and I'm testing running Script via
> Shell in my MacOS.
> I followed the tutorial, changed the permission using chmod a+x
> script.m but it doesn't worked.
>
> the script is this (copy and paste the tutorial)
>
> ------------------------------------------------
> #!/usr/local/bin/MathematicaScript -script
>
> Print /@ RandomVariate[MixtureDistribution[
> {1,2},
> {NormalDistribution[1,2/10],
> NormalDistribution[3,1/10]}],
> 10, WorkingPrecision -> 50]
> ------------------------------------------------
> I didn't find the MathematicaScript file that the tutorial says it's
> in #!/usr/local/bin/MathematicaScript
> maybe it could be de problem.
>
> my directory has:
>
> /usr/local/bin>ls
> capinfos dvipdf flac mergecap pgpdisk pkill.p=
l text2pcap
> twfind
> dftest edit idl2wrs metaflac pgpwde randp=
kt tshark
> wget
> dumpcap editcap latex pdf2ps pgrep.pl rawshark =
twdiff
> wireshark
>
> What I'm doing wrong?
> tks in advance!
> Murta