#
# This is an example of a simple interface file to print a
# file at a local PC's printer using Ftcopy and ICE.TCP from
# the James River Group.
#
# This script has only two options that need to be
# modified.
#
# The first is the argument after the "-a" (for IP address) 
# flag.  You would want to make this the IP address of the 
# workstation that has the local printer.
#
# The second argument is the port on the PC that the printer 
# is attached.  In the script below, we used LPT1.  Possible 
# options are PRN (the default DOS device), LPT1, LPT2, or 
# LPT4.
#
# version 1.1
#
printer=`basename $0`
request=$1
name=$2
title=$3
copies=$4
options=$5
file=$6
shift; shift; shift; shift; shift;

# Send the file(s) to standard output $copies times
while  [ "$copies" -gt 0 ]
 do
     for file
      do
        /usr/bin/ftcopy -a 192.146.151.33 $file LPT1 2>&1
      done
 copies=`expr $copies - 1`
done

exit 0
