#! /bin/sh

# This script may have to be edited to suit your system.
#
# ACUA v3.01 - Updated to use a safe tempory file.

if [ $# = "0" ]; then
  LOGIN=$USER
else
  LOGIN=$1
fi

TMPFILE=`mktemp /tmp/acua_viewRec.XXXXXX` || { echo "Could not make a temp file in /tmp"
					       echo "Make sure you have the mktemp program installed."
 				    	       exit 1
					     }     

acua pp "$LOGIN" acua_viewRec "$TMPFILE"
if [ -f "$TMPFILE" ]; then
  cat "$TMPFILE"
  rm -f "$TMPFILE"
fi
