#!/bin/bash # This is a simple script that print some diagnostic # info and does an ls -l # give the job a name #PBS -N matlab1 ## send email notification # Specifies that PBS send email notification when the job begins(b), ends(e), or aborts(a). #PBS -m abe #PBS -M mfitzpat@bu.edu # request 1 node #PBS -l nodes=1 # join stderr and stdout and write the to a file #PBS -j oe # Without -o option, filename.o_jobnumber is created on current directory #PBS -o /fs/user2/u1/mfitzpat/matlab/matlab-biowulf/mtest1.o #trying to run simple matlab script cd /fs/user2/u1/mfitzpat/matlab/matlab-biowulf #run my commands /usr/local/bin/matlab -nodisplay < testcode.m # print out some diagnostic stuff echo "Running on host `hostname`" echo echo "Directory is `pwd`" #echo echo "Start time is `date`" #echo # run my commands ls -l # print out some diagnostic stuff echo "Stop time is `date`" echo