Sample submit script for non-gui mode. You can copy/paste this script below to your Shamu directory, call it
math.qsub. Submit the job on Shamu with
qsub math.qsub.
#!/bin/bash
#
# Your job name
#$ -N Mathematica
#
# Use current working directory
#$ -cwd
#
# Join stdout and stderr
#$ -j y
#
# pe (Parallel environment) request. Set your number of processors here.
#$ -pe openmpi 32
#
# Run job through bash shell
#$ -S /bin/bash
#
# Use this queue
#$ -q all.q
#
. /etc/profile.d/modules.sh
module load mathematica
math -run < my_mathematica_input_file.math
--
AdminUser - 07 Nov 2019