The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
2answers
133 views

Running Mathematica Notebook files in command mode

The question is, how can I run a .nb file in the kernel mode of Mathematica? I am not an expert in Mathematica, but one of our users who use this program says that ...
6
votes
1answer
267 views

Determine how Mathematica was started

I have a notebook that I also execute as a m file on the command line. Depending on whether I run the notebook or the m file, I want to use slightly different commands. For example, ...
0
votes
1answer
40 views

Use the same Mathematica Executable Script on Different Computers

The first line in a Mathematica executable script specifies the directory of WolframScript, e.g. #!/usr/local/bin/WolframScript -script Assume I want to run a ...
5
votes
0answers
72 views

WolframScript Unix - Script Parameters on Raspberry Pi

I'm currently trying to run a script with 2 parameters which gets called via a BASH script. The script runs fine however the list of passed parameters , ...
2
votes
0answers
36 views

Interrupt evaluation of script with exit code 1 [closed]

I am running a Mathematica script I wrote as a batch job from a terminal, running it many times inside a loop inside a Bash script. Sometimes I want to abort the job. I can of course do ...
2
votes
1answer
79 views

Display line number/stack trace of error in script (i.e. batch mode / command line interface)

I am trying to set up a Mathematica script so that it runs from the command line in the manner that a sane person would expect. I have the following at the start of the file: ...
9
votes
1answer
168 views

Evaluating a notebook programmatically with -ne

I am running Mathematica 10.2 on an Ubuntu workstation. I would like to be able to evaluate a notebook through the command line, and save its final state so that I can launch evaluation remotely ...
1
vote
0answers
56 views

Running a script that needs a package

I am running a resource extensive notebook, and so I am trying to break it down into a .m file so that I can run it quicker and without using the mathematica interface. The problem is that my notebook ...
2
votes
1answer
128 views

Run example in Documentation not working in 10.2?

From Run's documentation ...
-1
votes
1answer
65 views

Remember Plotting Command [closed]

I used a command in another computer to obtain a surface without using any input more than the command. It returns me a surface like this: Anyone knows the command or commands that let me graph ...
5
votes
0answers
57 views

Can I customize the shell command line prompt?

Is there a way to customize the command line prompt (e.g., colorize it) for MathKernel when it runs as a shell command (in general, but specifically on OS X)?
3
votes
0answers
126 views

Difference between the CLI and the GUI version of Mathematica [closed]

I have been trying to find out how much faster Mathematica is in CLI than in GUI, and with lack of success in finding any information about it, I decided to crowdsource my quest for this piece of ...
2
votes
0answers
23 views

How to make lines not wrapping in text-mode Mathematica? [duplicate]

When running Mathematica from Unix command line, i.e. pure text mode, the lines wrap at about 70 pr 80 characters, creating lots of visual clutter. How do I set it so that any outputs will not wrap ...
3
votes
0answers
173 views

Is there a way to profile Mathematica code in batch mode?

I'd like to profile some Mathematica code to figure out why it's running slowly. Since the code takes about a day to run, I can't use the Wolfram Workbench GUI. Is there a way to run Wolfram Workbench ...
5
votes
1answer
291 views

How to send OUT output to stdout when running a script from command line on widows?

I am learning how to run a Mathematica m file from command line. I am on windows. My question is: How to make the output display on the screen (the DOS windows) as the script is running? Currently, ...
1
vote
1answer
176 views

Can CDF player (or player pro) run command line tools?

I'm curious if you could distribute a command line tool to run as a CDF file? For example, distributing a command line tool that loads data from a database, transmogrifies it somehow, then writes it ...
5
votes
3answers
272 views

Running PowerShell commands in Mathematica

I'm trying to execute a PowerShell command using Mathematica. Someone has made it before? I tested my command direct in PowerShell, and it worked nice, but no idea on how can I make Mathematica to ...
0
votes
0answers
209 views

Running math file as batch job

I am trying to run the following Mathematica program, ...
2
votes
1answer
186 views

FullForm in Linux Command Line with -noprompt

I am looking for a way to get the output of FullForm in Command Line under Linux (Debian) using -noprompt argument. Example : What I have : a+b*c What I want : ...
0
votes
2answers
148 views

Exporting files while running .m file from command line

I have the following code in a .m file which is called test.m: Export["test.csv",0]; Exit[] I would like to run this .m file from the command line. I found that I can do that with the command "math ...
3
votes
1answer
413 views

Running Mathematica code from a command line

How can I schedule custom Mathematica code to run on my windows machine? I need to schedule some code to run on my computer (Windows, Mathematica 10.0). I'm trying to get something to run via a ...
3
votes
1answer
1k views

Proper way to run a Mathematica script (-script vs -run vs MathematicaScript vs <)?

Suppose I have a Mathematica script called test.m. There at least 4 ways to run this from the terminal: ...
2
votes
1answer
1k views

Running a Mathematica Notebook from command line and saving the output [closed]

I am working on a project that requires some calculations to be done in Mathematica. I don't know Wolfram language and I don't have the time to learn it (I am using a 30-day trial) so I have a python ...
2
votes
2answers
187 views

ToExpression from commandline [duplicate]

I like to use Mathematica 8.0 from the commandline, then I just have to SSH in, no matter where I am, and go. I also like to do this without forwarding X, because that is slow and lags on my ...
2
votes
1answer
133 views

Changing Wolfram command line output into copyable text

I generated a long polynomial using the Wolfram command line, with divisions and exponents. But the divisions look like this: 4 - 5 And the exponents are on a ...
0
votes
0answers
132 views

Close Windows Explorer from within Mathematica?

Is it possible to close Windows Explorer from within Mathematica? I constantly find myself with multiple Windows Explorer windows open and it would be wonderful to be able to close them all at once ...
0
votes
1answer
192 views

Mathematica on a cluster

I try to run mathematica on a grid. Since this is my first time working on a cluster, I have no plan what to do. I have to run a job (pbs-file). ...
6
votes
2answers
355 views

Keep kernel running for execution of scheduled task

How can I keep a kernel running until all scheduled tasks have completed? For example upon running the following script bazinga.m: ...
3
votes
2answers
168 views

Under OS X, is there a way to view graphics output when running in the command line?

Being a long time unix shell person, I prefer Mathematica's command line interface, over the notebook. (command history, etc...) It just learned that on OS X, the cli is available as MathKernel. ...
4
votes
1answer
177 views

Is it possible to get AltGr key to work in Math.exe?

For some reason when you run Math.exe form windows command line, Mathematica disables the AltGr key. This is a bit annoying since my keyboard locale has the keys [, ], {, }, @, $, \, | located under ...
5
votes
0answers
173 views

Can Apple's Numbers spreadsheet link to a Mathematica function?

I use Apple's Numbers spreadsheet for a single thing, a double entry accounting model to understand complicated financial transactions. A current model depends on the value of a single initialization ...
3
votes
0answers
38 views

up arrow works in math version 9, fails in math version 8 ^[[A [duplicate]

I have strange up-arrow behavior on command line Mathematica 8 versus Mathematica 9. Version 9 gives me history, where version 8 fails with escape codes. Any way to make them both work on the same ...
5
votes
0answers
136 views

How can I run MUnit tests outside of Workbench under Linux?

I would like to run MUnit tests from the command line. On Mac OS, I can do this: ...
3
votes
1answer
241 views

Key Mapping in Command Line Mode

I would like to map Ctrl-U to "kill line" when using Mathematica 9.0 in command line mode (i.e. not within the front end, but when called from a Unix command line by "math"). I am aware that (on a ...
22
votes
2answers
901 views

How do I efficiently navigate the command line interface to Mathematica?

I would like to perfom such feats as cycling through previous commands, editing commands in place, etc. My expectation would be a readline-like interface, but this appears to not be the default.
8
votes
2answers
1k views

shortcut key for traverse command history in a Mathematica session in a terminal?

I wonder what is the shortcut key for traverse command history (i.e. retrieve last, last last, ..., commands) in a Mathematica session in a terminal? If I hit the up/down arrow or pageup/pagedown, it ...