I have to run some Mathematica programs on a remote computer running the Windows XP operating system. However, I do not know how to run the program using the command line on this system.
What do I need to do in order to run Mathematica code remotely on Windows XP?
Answer
As indicated in the documentation, one can access the Mathematica kernel from the command prompt using the command math
in Unix/Linux and MathKernel
from Mac OS X/ Windows.
If the MathKernel
command is not in your PATH
variable, you can try one of several things:
- Enter the full pathname as part of the command
Add
MathKernel
as aPATH
variable using the instructions appropriate to your version of Windows. This will generally involve (a) right-clicking on the My Computer icon from the desktop and choosing Properties, then (b) clicking on a tab or button with the word Advanced in its label (it’s the Advanced System Settings link in Vista and later), and then (c) choosing the Environment Variables option.Using the command prompt, navigate to the directory in Windows that stores the Mathematica kernel executable, as described in this page in the Mathematica documentation.
This documentation page collects all the relevant commands together.
There are several relevant tutorials in the documentation, including on use of the text-based interface and a listing of command-line options and environment variables.
Comments
Post a Comment