copy the script below to /usr/spool/lp/model/winprint
and add a printer ( mkdev lp ) and choose winprint as the
model.
Change the script to suit your PC name and printer share name
Note: the line in the for loop is one line
===============winprint=======================
#
if [ -x "/usr/spool/lp/bin/drain.output" ]
then
DRAIN="/usr/spool/lp/bin/drain.output 1"
else
DRAIN=
fi
copies=$4
shift; shift; shift; shift; shift
files="$*"
i=1
while [ $i -le $copies ]
do
for file in $files
do
(echo "print -";echo\033&k2G\033&k2S\c";cat"$file";echo
"\014\033E\c")|/usr/local/samba/bin/smbclient \\\\PCNAME\\hp -P-N
done
i=`expr $i + 1`
done
${DRAIN}
exit 0
=====================end=========================
--
================================================
Robert Brady
rob...@crow.cfs.net.au
================================================
It needs to be installed manually.
--
Frank Hahn
"Virtual" means never knowing where your next byte is coming from.
Robert Brady wrote:
--
L. Michael Sweeden
108 Foxwood Circle
Oliver Springs, TN 37840
Phone: (865)435-7025
Fax: (865)435-5023