#!/bin/bash # This is a simple script that cd's into the # working directory, prints some diagnostic # info and does an ls -l # give the job a name #PBS -N test2 # send email notification #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 #PBS -o /fs/user2/userid/example/test2.out # cd into the working directory cd $PBS_O_WORKDIR # 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