#!/bin/tcsh # resources #PBS -l cput=00:02:00 # assign nodes by number #PBS -l nodes=1 # mail options (a=abort b=begin e=end n=none) #PBS -m abe cd $PBS_O_WORKDIR set path=(/bin /usr/bin /usr/local/bin .) set nodect=`wc -l $PBS_NODEFILE | cut -c 0-7` @ nodect = $nodect echo "mpich running on " `hostname` echo "running on $nodect nodes" echo "list of nodes: " `cat $PBS_NODEFILE` echo "path is " `set | grep path` matlab < sample.m