Header and trailer page pipelines
The sh attribute is used to define the pipeline for header and trailer pages.
Below is the sh attribute used to define the pipeline for header page generation and printing for an extended ASCII queue on an IBM® 4029 LaserPrinter. The attribute is shown as formatted by the lsvirprt command. See Virtual printer definitions for a further explanation.
Pipeline for Header Page
sh = %Ide/pioburst %F[H] %Idb/H.ascii | %Ide/pioformat
-@%Idd/%Imm -!%Idf/piof52
02 -L! -J! %IsH -u%IuH %Ide INCLUDE: (Directory Containing Miscellaneous
Modules)
'/pioburst '
%F[H] If "-H] Argument" on Command Line, "-# Argument"
-> OUTPUT
' '
%Idb INCLUDE: (Directory Containing Header and Trailer
Text Files)
'/H.ascii | '
%Ide INCLUDE: (Directory Containing Miscellaneous
Modules)
'/pioformat -@'
%Idd INCLUDE: (Directory Containing Digested Data Base
Files)
'/'
%Imm INCLUDE: (File Name Of (Digested) Data Base; Init.
By
"piodigest" (mt.md.mn.mq:mv))
' -!'
%Idf INCLUDE: (Directory Containing Loadable Formatter
Routines)
'/piof5202 -L! -J! '
%IsH INCLUDE: (FORMATTING FLAGS for header page)
' -u'
%IuH INCLUDE: (Input PAPER TRAY for header page)During spooler job processing, the value of the sh attribute is determined to be:
/usr/lib/lpd/pio/etc/pioburst /usr/lib/lpd/pio/burst/H.ascii |
/usr/lib/lpd/pio/etc/pioformat
-@/var/spool/lpd/pio/@local/ddi/ibm4029.asc.lp1.asc:lp1
-!/usr/lib/lpd/pio/fmtrs/piof5202 -L! -J! -u1The pioburstcommand processes the header page template and pipes its output to the device-independent formatter, pioformat, which in turn loads the digested version of the colon file for this virtual printer (the argument to the -@ flag) and the device-dependent formatter, piof5202 (the argument to the -! flag). There are three flags to piof5202:
- -L! - Long lines should not be wrapped.
- -J! - The printer should be restored to the state it was in before the header page was printed.
- -u1 - The header page should be drawn from paper tray 1.
The value of the st definition is similar to the value of the sh definition.