#!/bin/sh 
#  Copyright 1995, Richard M. Troth, all rights reserved.   <plaintext> 
# 
#	  Name: rfile (shell script) 
#		identify contents of files in the "receive pool" 
#	  Date: 1995-Apr-19, 29 
# 
 
# 
# user must indicate which UFT file to examine: 
if [ -z "$1" ]; then 
	echo "usage: $0 nnnn" 
	exit 24 
	fi 
 
# 
# set some variables: 
F=`echo "$1" | awk '{printf "%04d",$1}'` 
if [ "$?" != 0 ]; then exit 24; fi 
D=/usr/spool/uft/$LOGNAME 
if [ -n "$UFT_SPOOLDIR" ]; then D="$UFT_SPOOLDIR"; fi 
 
# 
# make sure we have a UFT spool directory: 
if [ ! -d "$D" ]; then 
	mkdir "$D" 
	chmod 700 "$D" 
	fi 
if [ ! -d "$D" ]; then 
	echo "UFT configuration problem: no spool dir" 
	exit 1 
	fi 
 
# 
# be sure this file exists: 
if [ ! -f $D/$F.cf -o ! -f $D/$F.df ]; then 
	echo "file $F not found" 
	exit 28 
	fi 
 
# 
# whatzit? 
file $D/$F.df 
 
exit 
 
