#!/bin/bash # This is a simple script that print some diagnostic # info and does an ls -l # give the job a name #PBS -N test1 ## send email notification # Specifies that PBS send email notification when the job begins(b), ends(e), or aborts(a). #PBS -m abe #PBS -M userid@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/userid/example/test1.o # 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