COMSOL Multiphysics® Installation Guide > Running COMSOL on OS X > Running COMSOL in Batch Mode

Running COMSOL in Batch Mode
You can submit COMSOL batch jobs from the COMSOL Desktop and the command line. To run a COMSOL batch job, you need to make the Batch feature visible: in the Model Builder tree, click the Show button () and select Advanced Study Options. In the Model Builder, right-click a Study node and select Batch to create batch jobs. From the terminal window, you can start batch jobs using the comsol batch command. This is an example of how such a command could look:
comsol batch -inputfile in.mph -outputfile out.mph
To run a specific study add the command line option -study <tag>, where <tag> is the tag of the study to run, for instance, std1. To see the tag, click the toolbar button Model Tree Node Text in the Model Builder and select Tag.
The COMSOL Multiphysics Reference Manual includes a dedicated section on running COMSOL from the terminal window, including a list of COMSOL commands and associated syntax.