The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
0answers
14 views

Interrupt evaluation of script with exit code 1

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
28 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: ...
0
votes
0answers
26 views

Unstable command line startup time [on hold]

I installed Mathematica in an Ubuntu machine, and the start up time in command line is very unstable. Some times open instantly, another times get 40 seconds to open it. I'm using no interface, just ...
9
votes
1answer
142 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
46 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
122 views

Run example in Documentation not working in 10.2?

From Run's documentation ...
-1
votes
1answer
64 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 ...
4
votes
0answers
54 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
109 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 ...
1
vote
0answers
22 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
161 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
226 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, ...
0
votes
0answers
68 views

View command-line output in GUI with formatting

Mathematica produces plain-text output when run at the Linux command line. Is there any way to open this plain text output in the Mathematica GUI so that it has all of the pretty formatting as if it ...
1
vote
1answer
162 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
249 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
176 views

Running math file as batch job

I am trying to run the following Mathematica program, ...
2
votes
1answer
165 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
126 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
338 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
737 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
824 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
156 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
123 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
123 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
138 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). ...
4
votes
2answers
316 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
147 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
170 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
169 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
132 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
229 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
867 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 ...