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


Groups > comp.soft-sys.math.mathematica > #4601 > unrolled thread

Mathematica Script mode

Started bymath_new <dom.woe@gmail.com>
First post2011-08-27 12:16 +0000
Last post2011-08-27 12:16 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Mathematica Script mode math_new <dom.woe@gmail.com> - 2011-08-27 12:16 +0000

#4601 — Mathematica Script mode

Frommath_new <dom.woe@gmail.com>
Date2011-08-27 12:16 +0000
SubjectMathematica Script mode
Message-ID<j3an78$had$1@smc.vnet.net>
Hi,

I have written a usual mathematica notebook that should export some
plots. But I want to be able to run it from command line with some
parameters.

Thus, I added
p1 = ToExpression@$ScriptCommandLine[[2]]
p2 = ToExpression@$ScriptCommandLine[[3]]

made all cells to initial cells and saved the file as a package.

Now, I tried to run the script with

nohup math -script ThisScript.m p1 p2

but in the end, nohup.out says that $ScriptCommandLine is an empty
list.

I use Mathematica 8.0 64bit.

What am I doing wrong?

Thanks and Greets

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web