:
# $Id: nlsdumb,v 3.1 1991/11/27 06:02:58 ajf Exp ajf $
#
#	Printer model using uux to transport print file to a remote
#	site via uucp.  The uucp connection could be by serial
#	connection or by tcp/ip (TLI interface) using a network listener.
#
#	minor changes are needed for use with lpr
#

# --- set remote site name ---
RSITE=ajfcal

printer=`basename $0`
request=$1
name=$2
title=$3
copies=$4
options=$5
shift; shift; shift; shift; shift
files="$*"

sysid=`uname -n`
rname=`echo $name@$sysid`

for file in $files
do
   case $options in
   " " ) uux - -a$name "$RSITE!lp -t \"$title\" -o$rname -n$copies" < $file
         ;;
   *)    uux - -a$name "$RSITE!lp -o\"$options $rname\" -t \"$title\" -n$copies" < $file
         ;;
   esac
done
exit 0
