|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/highlandlabs/cqi-bin/ALFA_DATA/alfasymlink/root/usr/share/examples/smbfs/print/ |
Upload File : |
#!/bin/sh
# Sample input filter to print on HP Laser Jet printers
# Installed in /usr/local/libexec/hp6l
DEVICE="ljet3"
PAPERSIZE="a4"
printf "\033&k2G" || exit 2
read first_line
first_two_chars=`expr "$first_line" : '\(..\)'`
if [ "$first_two_chars" = "%!" ]; then
exec 3>&1 1>&2
/usr/local/bin/gs -sPAPERSIZE=${PAPERSIZE} -dSAFER -dNOPAUSE -q -sDEVICE=${DEVICE} \
-sOutputFile=/dev/fd/3 - && exit 0
else
echo $first_line && cat && printf "\033&l0H" && exit 0
fi
exit 2