MathGroup Archive 2012

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

Search the Archive

Re: Running MathematicaScript in Mac Terminal

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124976] Re: Running MathematicaScript in Mac Terminal
  • From: Sseziwa Mukasa <mukasa at gmail.com>
  • Date: Wed, 15 Feb 2012 04:43:30 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201202141140.GAA17797@smc.vnet.net>

/Applications/Mathematica\ Home\ Edition.app/Contents/MacOS/MathKernel-script script.m

Regards,
	Sseziwa

On Feb 14, 2012, at 6:40 AM, Murta 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.pl  text2pcap
> twfind
> dftest    edit      idl2wrs   metaflac  pgpwde    randpkt   tshark
> wget
> dumpcap   editcap   latex     pdf2ps    pgrep.pl  rawshark  twdiff
> wireshark
>
> What I'm doing wrong?
> tks in advance!
> Murta
>




  • Prev by Date: Re: MenuCommand Events
  • Next by Date: Using .NET/Link on 64-bit Windows Server 2008
  • Previous by thread: Running MathematicaScript in Mac Terminal
  • Next by thread: Re: Running MathematicaScript in Mac Terminal