#!/bin/bash # This is a simple script that print some diagnostic # info and runs a command #PBS -N test3 # send email notification #PBS -m abe #PBS -M josephs@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/josephs/Examples/test3.o # 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 ./dostuff.pl > test3.out1 # print out some diagnostic stuff echo Stop time is `date` echo