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


Groups > comp.soft-sys.math.mathematica > #8531

Running MathematicaScript in Mac Terminal

From Murta <rodrigomurtax@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Running MathematicaScript in Mac Terminal
Date 2012-02-14 11:42 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jhdhbj$he1$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Running MathematicaScript in Mac Terminal Murta <rodrigomurtax@gmail.com> - 2012-02-14 11:42 +0000
  Re: Running MathematicaScript in Mac Terminal David Reiss <dbreiss@gmail.com> - 2012-02-15 09:41 +0000
    Re: Running MathematicaScript in Mac Terminal Murta <rodrigomurtax@gmail.com> - 2012-02-16 20:03 +0000
    Re: Running MathematicaScript in Mac Terminal Murta <rodrigomurtax@gmail.com> - 2012-02-16 08:27 +0000
  Re: Running MathematicaScript in Mac Terminal Morgan Sutherland <morgan@msutherl.net> - 2012-02-17 11:32 +0000

csiph-web