ITEM: CK4868L

Print queue backend shell script for terminal attached printing


ENV: ver 3.2.5
     model c10

DESC:
The customer has a printer attached to the auxiliary port of a wyse60
terminal. The terminal is emulating a vt100. The customer is unable to
send print jobs through the AIX spooler to this printer.

ACT:
Sent a job through the print queue and it stayed in a running state.

On the terminal, itself:
\#tput -Tvt100 mc5; lptest; tput -Tvt100 mc4
  This printed.

Prepended the escape sequences for the vt100 mc5 (found in
/usr/lib/terminfo/dec.ti) to the ci attribute of the virtual printer.
Also, appended the escape sequence for the vt100 mc4 to the cr attribute
of the virtual printer.

Still was not able to print through the queue.

Wrote the following script to /usr/lib/lpd/back_end
Wrote the following script to /usr/lib/lpd/back_end
\#!/bin/ksh
TERMTYPE=$1
shift 1
tput -T$TERMTYPE mc5
cat $*
tput -T$TERMTYPE mc4
exit 0

Changed the backend of queue to print to the terminal-attached
printer to:
/usr/lib/lpd/back_end vt100 \<---- (the above backend + terminal type)
We were then able to print through the queue.



Support Line: Print queue backend shell script for terminal attached printing ITEM: CK4868L
Dated: January 1997 Category: N/A
This HTML file was generated 99/06/24~13:30:17
Comments or suggestions? Contact us