#!/bin/sh
# If PBS_ENVIRONMENT exists and is "PBS_BATCH" or "PBS_INTERACTIVE",
# set TMPDIR
# Copyright 1999 Ohio Supercomputer Center
if [ -n "$PBS_ENVIRONMENT" ]
then
  if [ "$PBS_ENVIRONMENT" = PBS_BATCH -o "$PBS_ENVIRONMENT" = PBS_INTERACTIVE ]
  then
    export TMPDIR=/tmp/pbstmp.$PBS_JOBID
  fi
fi


