#!/bin/sh # Clear out TMPDIR # Copyright 1999, 2000, 2001 Ohio Supercomputer Center # epilogue gets 9 arguments: # 1 -- jobid # 2 -- userid # 3 -- grpid # 4 -- job name # 5 -- sessionid # 6 -- resource limits # 7 -- resources used # 8 -- queue # 9 -- account # jobid=$1 nodefile=/var/spool/pbs/aux/$jobid if [ -r $nodefile ] ; then nodes=$(sort $nodefile | uniq) else nodes=localhost fi tmp=/tmp/pbstmp.$jobid for i in $nodes ; do ssh $i rm -rf $tmp done exit 0