I use this script in
tru64 unix -Alpha
servers to send jobs to
all printers.
#!/bin/ksh
# this script is sending
# the required printing
# job to all printers
# already configured in
# your system,
cat /etc/printcap|grep "|" |cut -f 1 -d "|" | while read line anything
do
echo " sending file $1 to printer $line "
echo " lpr -P$line " $1
sleep 1
echo " to stop printing, press ctrl+c"
clear
lpr -P$line $1
done
This tip generously supported by: shadia@dohms.gov.ae NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.