Questions tagged [command-line]

The tag has no usage guidance.

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
275 views

How can I create a REPL for Mathematica in Sublime Text

I would like to be able to interact with Mathematica command line interface from within Sublime Text. Sublime Text has a package called Sublime REPL that provides an interface for different ...
6
votes
0answers
225 views

Passing UTF-8 to wolframscript on the command line

I am trying to use Unicode input to wolframscript -c, like so: $ ./wolframscript -c '1/∞' â^(-1) The source of this behavior ...
5
votes
0answers
78 views

Processor Detection Problem with Mathematica in Linux command-line

Here is the problem, there are two ways to launch Mathematica in Linux: Double click a notebook file in Desktop (GUI mode). It gives: $ProcessorCount (* 4 *) ...
5
votes
0answers
43 views

List of symbols that do not work in console?

Symbols that do not work in the Wolfram Cloud have a nice "no cloud" icon. Is there something similar for symbols that don't work in the wolfram console? Or perhaps a full list of functions that do ...
5
votes
0answers
43 views

The second escaped path breaks command execution

Due to a terrible chain of events I had to reinstall part of my software. Git among it, but a newer version. Something changed because earlier all four evaluations were giving me a version info: <...
5
votes
0answers
75 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)?
5
votes
0answers
338 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: ...
4
votes
0answers
104 views

Using an existing local kernel when launching from command line

I am trying to setup a web interface to a couple of Mathematica scripts, which in itself is quite simple: ...
4
votes
0answers
156 views

Can one combine Mathematica with bash script?

For example, I create a Mathematica nb file which can work on a set of parameter values or several files at once. It needs me to change the parameter after finishing computing one parameter. If I ...
3
votes
0answers
58 views

Why can't I authenticate my SSH connection in Mathematica?

I'm trying to SSH into my Cyberpower PDU41001, which is connected to my computer via Ethernet cable. My computer runs Windows 10. I have enabled SSH communication on the device by logging into the IP ...
3
votes
0answers
33 views

J/Link with Environment Variables and Command-Line Parameters

I have inherited a large number of Java files with classes I am trying to call from Mathematica via J/Link. They are legacy and am not at liberty to modify. A few are used on command-line scripts (...
3
votes
0answers
48 views

Is there a limit to the amount of data that can be Run?

I need this command to work through the WolframKernel and it seems well beyond my understanding why it does not work above a certain amount of data size I'm passing to ...
3
votes
0answers
105 views

Not getting any output from mathematica script

I am completely new, so this question may be trivial, but I can't find any answers in the Wolfram documentation. I am playing around with scripting in Mathematica, but I cannot seem to get any type ...
3
votes
0answers
175 views

Command line arguments to wolframscript interact strangely with -file option

In order to avoid script-defined command-line arguments clashing with existing arguments to wolframscript, it appears you are supposed to use the ...
3
votes
0answers
252 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 ...
2
votes
0answers
72 views

Arrow key problem with mathematica 12 and bash version 5

I want to know if anyone experiences the issue with mathematica-12 with bash-5? I am using the command line interface of mathematica. Now when I do up arrow or down arrow to go to history, it does ...
2
votes
0answers
77 views

can't start r process in cmd

...
2
votes
0answers
74 views

Make exponents line up with their base in terminal

For some reason, the exponents displayed on a terminal (Mac OS X 10.13) Mathematica 11.2 do not line up with their bases: ...
2
votes
0answers
100 views

Export cdf does not work in MathKernel command line

I am using Mathematica through command line MathKernel. I am not trying to draw any graphics in the console. But I should be able to export things a CDF. Why can't ...
1
vote
0answers
42 views

Unable to execute Wolfram script by calling a package

I am working on a script which loads a package called test. When I try to run the same from my command line, I am seeing my input printed without execution. ...
1
vote
0answers
46 views

Command line session Linux from Mathematica

Using RemoteConnect and RemoteRunProcess I can create a remote session such that successive commands are done in the same ...
1
vote
0answers
46 views

Different WordData results between notebook and command line

When I run p = WordData["classy", "PhoneticForm"]; Print[p]; Print[StringLength[p] ]; in a notebook, the result is ...
1
vote
0answers
103 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 ...
0
votes
0answers
39 views

Parallel Computation: Kill kernels which have completed the jobs while others keep running

I launch 20 parallel kernels in the background using nohup math -run "<<file.m" &> file.out The nature of computation is integration over various ...
0
votes
0answers
80 views

Readable formula output on command line

I was trying to solve some differential equations. Mathematica is a little expensive to me, so I went for the free Wolfram Engine for Developers. It is said that the engine offers the full power of ...
0
votes
0answers
114 views

Mathematica on Command Line: graphics errors under Mojave

Running Math 11 (or earlier) under Mac Mojave (10.14.5) from the command line, as soon as I display graphics I get a series of errors that look like this: /BuildRoot/Library/Caches/com.apple.xbs/...
0
votes
0answers
131 views

How to plot imaginary parts of complex valued list of data separately?

I am using a user-defined function syscomplex[t1,t2,a] which calculates the complex energies of a system in a Mathematica-based software. Here: ...
0
votes
0answers
479 views

math and mathematica not working in Debian command line

I am asking this question because I can't find solution anywhere. On the Mathematica website it says to start Mathematica type mathematica and to start the kernel ...
0
votes
0answers
545 views

How to run Mathematica source code in Linux command line when some external file need to be imported and the result need to export?

I want to run a short code like that in the linux command line ...
0
votes
0answers
69 views

Mathematica does't print the number 10 for small numbers on command line

I'm running this code from commanline using mathematica 10.1 #!/usr/local/bin/MathematicaScript -script vec = Table[10.0^-v,{v,0,10,1}]; Print[vec]; and the ...
0
votes
0answers
611 views

Running math file as batch job

I am trying to run the following Mathematica program, ...