/usr/lib/printfilters/asc-to-printer.fpi is in printfilters-ppd 2.13-11.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #!/bin/sh
#
# convert ASCII to the format required by the printer on this queue
#
#
# read in text-only configuration settings
#
#thanks to datoch@magtigsm.ge for the space
if [ -f "${SPOOLDIR}/textonly.cfg" ];then
. ${SPOOLDIR}/textonly.cfg
else
# find the name of the queue from the spool dir
eval `pcap -S $SPOOLDIR`
# Load text-only configuration options
eval `pcap -P$queue:TEXTONLYOPTIONS` >> /dev/null
eval `pcap -P$queue:CRLFTRANS` >> /dev/null
eval `pcap -P$queue:TEXT_SEND_EOF` >> /dev/null
fi
#
# are there any special options required for text-only printing?
#
if [ "$TEXTONLYOPTIONS" != "" ]; then
printf $TEXTONLYOPTIONS
fi
#
# do we need to map lf into cr/lf for dos-loving printers?
#
if [ "$CRLFTRANS" = YES -o "$CRLFTRANS" = 1 ]; then
sed -e 's/$/'`/bin/echo -ne '\r'`'/g'
else
cat -
fi
#
#
# see if we need to send a form feed to eject the page from printer
#
if [ "$TEXT_SEND_EOF" = "YES" ]; then
printf "\014"
fi
exit 0
|