Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4601 > unrolled thread
| Started by | math_new <dom.woe@gmail.com> |
|---|---|
| First post | 2011-08-27 12:16 +0000 |
| Last post | 2011-08-27 12:16 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Mathematica Script mode math_new <dom.woe@gmail.com> - 2011-08-27 12:16 +0000
| From | math_new <dom.woe@gmail.com> |
|---|---|
| Date | 2011-08-27 12:16 +0000 |
| Subject | Mathematica 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
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web