Timeline for Mathematica script - passing command line arguments
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 8, 2012 at 20:12 | comment | added | mmal | @Ajasja I agree, it can be done this way. But I don't think its the best/proper one. | |
May 8, 2012 at 20:00 | comment | added | Ajasja | @mmal Why can't list be passed using env. variables? | |
May 8, 2012 at 19:18 | comment | added | Szabolcs |
I get the same thing both on Windows and Linux when using math.exe or math . $ScriptCommandLine is empty. However, if I use MathematicaScript (available only on Linux), then I get back the actual command line, starting with {"./script.m", ...} .
|
|
May 8, 2012 at 19:09 | comment | added | mmal |
Environment seems not to be a good solution eg. when passing lists. By the way, the same happens when running: $./script.m {2,3,4,5,5} even when this script is empty.
|
|
May 8, 2012 at 18:54 | history | answered | Ajasja | CC BY-SA 3.0 |