#!/bin/sh
#
# Request 1 nodes
#
#PBS -l nodes=1
#
# Request 1 hour 10 minutes of wall-clock time
#
#PBS -l walltime=1:10:00
#
# Request that regular output (stdout) and
# terminal output (stderr) go to the same file
#
#PBS -j oe
#
# Send mail when the job aborts or terminate
#
#PBS -m ae
#
# Mail address
#
#PBS -M xxx@domain.org
# Add matlab module
. use_modules
module add matlab
# Goto the directory from which you submitted the job
cd $PBS_O_WORKDIR
# Specify the executable ...
matlab -nodisplay -nosplash -nojvm < matlab_demo.m > out.dat