I'm on under OS X trying to run a script through the kernel. My actual plan is to run a bash script which would call mathematica with an address to process a file. I have finished the code (with precious contributions) and it's working properly. but when I run it in kernel it accepts it but nothing happens! I have settled up kernel (in zsh ~/.zshrc ).
alias math="/Applications/Mathematica.app/Contents/MacOS/MathKernel"
I am using "oh my zsh"
and when I just simply type math kernel runs!
Mathematica 10.2.0 for Mac OS X x86 (64-bit)
Copyright 1988-2015 Wolfram Research, Inc.
In[1]:=
but when I type
math -script cube_plot.m
nothing happens! (it is supposed to create a jpeg file, I also changed the code to print "something" in case export command doesn't or I dunno??! but still nothing)
I also have another question if I fixed this issue for passing an address to my notebook through script command can I use this
math -script cube_plot.m address="/Users/ray/Desktop/Reza/3-1/CMe2/CMe2-t.spindens.cube"
cube_plot.m
using the Mathematica frontend? You may be running into (9921). $\endgroup$