#!/bin/sh # Create TMPDIR on all the nodes # Copyright 1999, 2000, 2001 Ohio Supercomputer Center # prologue gets 3 arguments: # 1 -- jobid # 2 -- userid # 3 -- grpid # jobid=$1 user=$2 group=$3 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 mkdir -m 700 $tmp \&\& chown $user.$group $tmp done exit 0