Bull Guide to Printers and PrintingAIX86 A2 37JX 02ORDER REFERENCE
viiiGuide to Printers and Printing
3-14Guide to Printers and Printingargv[0] is the name of the backend itself, as usual. Note that the –Pasc, which specifies thequeue name, was parsed
3-15Spooler OverviewVirtual Printers and Formatter Filters When the spooler queue backend is piobe, the formatter filter is normally the next–to–lastp
3-16Guide to Printers and PrintingThe pioformat command expects to be able to call, if necessary, five subroutines;pioformat by itself does not contai
3-17Spooler Overview/etc/qconfig, the Spooler Configuration File /etc/qconfig File Structure /etc/qconfig is the most important file in the spooler do
3-18Guide to Printers and PrintingFollowing the tab–indented lines, the qdaemon must find the word that is the value of thedevice parameter followed b
3-19Spooler Overviewps: device = lp1lp1: file = /dev/lp1 header = never trailer = never access = both backen
3-20Guide to Printers and PrintingSummaryThe Spooler Data Flow Summary figure summarizes the high–level flow of a spooler printjob through the AIX spo
4-1Printer, Plotter, and Spooler Subsystem ProgrammingChapter 4. Printer, Plotter, and Spooler SubsystemProgrammingThis section discusses:• Printer Ba
4-2Guide to Printers and PrintingPrinter Backend Overview for ProgrammingThe AIX printer backend receives and processes print requests from a spooler,
4-3Printer, Plotter, and Spooler Subsystem ProgrammingPrinter Backend Data FlowThe primary purpose of a backend is to send characters to a device, usu
ixPrefaceAbout This BookThis book contains information for understanding the print process as well as providingprinter configurations.Note: You can al
4-4Guide to Printers and PrintingVirtual Printer Definitions and AttributesA virtual printer definition is a file that pairs the attributes or charact
4-5Printer, Plotter, and Spooler Subsystem Programmingnames must not begin with a numeral. All attribute names must be two characters long,except for
4-6Guide to Printers and PrintingName Description Value_ _FLG VALUES THAT MAY BE OVERRIDDEN WITH FLAGS ON
4-7Printer, Plotter, and Spooler Subsystem ProgrammingSome typical _ _SYS attributes for a supported PostScript laser printer are:_ _SYS OTHER VALUES
4-8Guide to Printers and Printing_ _IDS PIPELINES FOR INPUT DATA STREAMS (2 char, 1st=”i”, 2nd=data stream name)ia Pipeline for Input Data
4-9Printer, Plotter, and Spooler Subsystem ProgrammingFilter Flag AttributesAttributes grouped under the _ _FIL group header attribute store command s
4-10Guide to Printers and Printingfiles containing header and trailer page text, downloadable font files, and temporary files.The first character in a
4-11Printer, Plotter, and Spooler Subsystem Programming_ _MIS MISCELLANEOUSmA Printer Data Stream Description PostScriptmD Nam
4-12Guide to Printers and PrintingThe colon file stores these same values as::062:_ _WKV:::472:w7::%?%S_s%”Courier”%=%tCourier–Bold%e%S_s%”Times–Roman
4-13Printer, Plotter, and Spooler Subsystem ProgrammingEscape Sequences AttributesEscape sequence attributes begin with the letter e and are grouped u
xGuide to Printers and PrintingISO 9000ISO 9000 registered quality systems were used in the development and manufacturing ofthis product.Related Publi
4-14Guide to Printers and PrintingPrinter Colon File Escape Sequences Embedded references and logic for attribute values in the printer backend’s data
4-15Printer, Plotter, and Spooler Subsystem Programming%Dxx Downloads to the printer the contents of the file whose full path name isspecified by the
4-16Guide to Printers and PrintingInternal Variables:Internal variables a through z are integer variables for use by %P, %Z, and %g. They areinitializ
4-17Printer, Plotter, and Spooler Subsystem ProgrammingNote: The first value to be popped off the stack is the last one to be pushed onto the stack,an
4-18Guide to Printers and PrintingLoops%wx While loop. Whenever a matching %; is reached, the value of theinternal variable x (x can be a through z) i
4-19Printer, Plotter, and Spooler Subsystem Programming%vxy or %v[...] Similar to %fxy and %f[ . . . ], but used only in the command string forthe pio
4-20Guide to Printers and PrintingPrinter Colon File Conventions Printer and printer data stream attributes reside in colon files. Colon files reside
4-21Printer, Plotter, and Spooler Subsystem ProgrammingAttribute NamesThe following conventions have been established for virtual printer attribute na
4-22Guide to Printers and PrintingThe following attribute names are used for communicating from the piobe command (theprint job manager) to the pioout
4-23Printer, Plotter, and Spooler Subsystem ProgrammingSuggested Attribute NamesSuggested attribute names are names that are assumed by many formatter
1-1Printers, Print Jobs, and Queues Overview for UsersChapter 1. Printers, Print Jobs, and Queues Overviewfor UsersDepending on the printer, you can c
4-24Guide to Printers and PrintingLimits FieldThe limits field in the colon file contains two types of information. SMIT dialog informationand validat
4-25Printer, Plotter, and Spooler Subsystem ProgrammingExample of Print Formatter This example shows how print formatters can interact with the docume
4-26Guide to Printers and Printing/* TABLE OF ATTRIBUTE VALUES */struct attrparms attrtable[] = { /*name data type lookup address of pointer */”_b”
4-27Printer, Plotter, and Spooler Subsystem Programminglineout(fileptr) /*** Format a Line ***/FILE *fileptr;{int ch, charcount = 0;for (ch = 0; ch
4-28Guide to Printers and PrintingUnderstanding the Interaction between qdaemon and theBackendBesides reading files and writing to devices, a backend
4-29Printer, Plotter, and Spooler Subsystem ProgrammingPrinting Extra CopiesThe enq –N command prints extra copies of a file. For example, to print fi
4-30Guide to Printers and PrintingEXITFATAL The job could not be finished because of a problem in the devicethat requires manual intervention. The qd
4-31Printer, Plotter, and Spooler Subsystem ProgrammingMessage FormatEach message sent by the printer backend consists of a message header frame, zero
4-32Guide to Printers and Printing and assigns the first variable parameter pointer to the eighth parameter, the secondvariable parameter pointer to t
4-33Printer, Plotter, and Spooler Subsystem ProgrammingUnderstanding Backend Routines in libqb This article defines the set of library routines that t
1-2Guide to Printers and PrintingPrinter TerminologyThe following defines terms commonly used with printing.Print JobA print job is a unit of work to
4-34Guide to Printers and Printingget_was_idle() Returns TRUE if the printer was idle at job beginning (useful forpaper feed: feed/no feed).Returns th
4-35Printer, Plotter, and Spooler Subsystem ProgrammingPrinter Code Page Translation Tables Translation of code points in the print file to code point
4-36Guide to Printers and PrintingBy convention, the printer command string’s 2–character attribute name is at index 0 in theCommand Names array. If t
4-37Printer, Plotter, and Spooler Subsystem ProgrammingThe Ti and To attributes in the printer–dependent colon files define the possible flow of thetr
4-38Guide to Printers and PrintingThe qprt –F flag specifies a font. The full path name, font alias, or the Xwindow LogicalFunction Description (XLFD)
4-39Printer, Plotter, and Spooler Subsystem ProgrammingPrinter Code Page Translation for Multibyte Code Sets Multibyte code set (MBCS) translation fro
4-40Guide to Printers and PrintingFor example, to print an MBCS file that was written with a new code set on an IBM–943printer follow these steps:1. C
4-41Printer, Plotter, and Spooler Subsystem ProgrammingTranslation Table Example #include <fcntl.h>struct trans_table /*Translation
4-42Guide to Printers and PrintingPrinter Attachment FilesAttachment files provide a simple interface for developers of printer attachments to createS
4-43Printer, Plotter, and Spooler Subsystem ProgrammingStructure of Attachment FilesAttachment files are ASCII files. Each line in an attachment file
1-3Printers, Print Jobs, and Queues Overview for UsersReal PrinterA real printer is the printer hardware attached to a serial or parallel port at a un
4-44Guide to Printers and PrintingAttachment File Field DefinitionsThe following field definitions detail the attachment type fields, formats for the
4-45Printer, Plotter, and Spooler Subsystem Programmingadd_printer Specifies the name of the SMIT selector ID to branch to in order toadd a printer to
4-46Guide to Printers and PrintingPrinter Colon File limits Field Operators The limits field in the colon file contains two types of information:• SM
4-47Printer, Plotter, and Spooler Subsystem ProgrammingFor example, if the limits field contained ’E#’ , the sm_cmd_opt object class entry_type fiel
4-48Guide to Printers and PrintingDisplay OperatorsC Defines how multiple flags relate within the SMIT dialog, how the options for theflags are displ
4-49Printer, Plotter, and Spooler Subsystem ProgrammingField Characteristics OperatorsE Controls the entry_type field of the sm_cmd_opt object. The p
4-50Guide to Printers and PrintingF Allows control of the cmd_to_list_mode field of the sm_cmd_opt object. Thecmd_to_list_mode field specifies how m
4-51Printer, Plotter, and Spooler Subsystem ProgrammingM Specifies a multi–select list which allows users to select more than one valuefrom a given l
4-52Guide to Printers and PrintingAdding Support for Configuring a Network–Attached PrinterNote: The information in this article is provided for backw
4-53Printer, Plotter, and Spooler Subsystem Programmingshows the statement types, and the fields they support. An x (ex) indicates that thestatement s
1-4Guide to Printers and PrintingStarting a Print Job (qprt Command)Use the qprt, or smit commands to request a print job and specify the following: •
4-54Guide to Printers and Printinggotolabel Specifies the label of the statement to branch to after executing thisstatement.• For M statements, specif
4-55Printer, Plotter, and Spooler Subsystem Programmingreserved2 Reserved for future use.pipeline Specifies a shell command to execute. Specifically:•
4-56Guide to Printers and PrintingPromptsPrompts can be constructed using the V statement plus one or more v statements tovalidate the response. After
4-57Printer, Plotter, and Spooler Subsystem ProgrammingAdding a Printer Using the Printer Colon File Prerequisite Tasks or Conditions• The printer mus
4-58Guide to Printers and Printing%Sxx Pushes a pointer to the current string value for the xx attribute onto the stack. Theonly operation that can be
4-59Printer, Plotter, and Spooler Subsystem ProgrammingPrinter–Specific Information The format and content of the header and trailer pages can be cust
4-60Guide to Printers and Printing• Lexmark Optra Plus LaserPrinter• Lexmark Optra Color 1200 Printer• Lexmark Optra Color 40 Printer• Lexmark Optra C
4-61Printer, Plotter, and Spooler Subsystem ProgrammingUsing SMIT”, on page 2-39 . To change paper size for a single print job, specify the –Q flagwit
4-62Guide to Printers and Printing2. Select the appropriate print queue and select Printer Setup on the Change/ShowCharacteristics menu. Specify yes i
4-63Printer, Plotter, and Spooler Subsystem ProgrammingIBM Proprinter Models 4201–3, 4202–3, 4207–2, 4208–2If support for Greek or Turkish characters
1-5Printers, Print Jobs, and Queues Overview for UsersSome useful qprt command flags are:–b Number Specifies the bottom margin. The bottom margin is
4-64Guide to Printers and Printingsmit chpq2. Select the appropriate print queue, then select Printer Setup on the Change/ShowCharacteristics menu.3.
4-65Printer, Plotter, and Spooler Subsystem ProgrammingIBM Network Color PrinterThe predefined files on AIX Version 4.2.1 or later only supports the I
4-66Guide to Printers and Printingibmcolor_direct 1.03 or 1.1 controller code and 16MB of memory.ibmcolor_print 1.03 or 1.1 controller code and 32MB
4-67Printer, Plotter, and Spooler Subsystem ProgrammingThe IBM Network Printer 12, 17, and 24 support the following output bins. The output binscan be
4-68Guide to Printers and Printing–e # Specifies staple and collation. The –e #option flag only works if a face–downfinisher bin is selected. See –= o
4-69Printer, Plotter, and Spooler Subsystem Programming–Q #Specifies paper size for the print job. The –Q options for the InfoPrint 20are:1 Letter2
4-70Guide to Printers and PrintingIBM InfoPrint 32 Printer–= # Type of Output Paper Handling.0 Default Printer Setting1 Main (Face Down)2 Face–up (
4-71Printer, Plotter, and Spooler Subsystem Programming–z #Rotates page printer output the number of quarter–turns clockwise as specified bythe Value
4-72Guide to Printers and PrintingIBM InfoPrint 40 Printer–= #Type of Output Paper Handling.0 Default Printer Setting1 Main (Face Down)2 Face–up (Rear
4-73Printer, Plotter, and Spooler Subsystem Programming–Q #Specifies the paper size for the print job.1 Letter2 Legal3 Folio4 11x175 A46 B47 A38 Unive
1-6Guide to Printers and Printing–L OptionSpecifies whether lines wider than the page width should bewrapped to the next line or truncated at the righ
4-74Guide to Printers and PrintingTo print more lines per page than the line space allows (6 or 8 lines per inch), specify thenumber of lines per page
4-75Printer, Plotter, and Spooler Subsystem ProgrammingHewlett–Packard LaserJet 5Si and 5Si Mopier PrintersOutput Bins The base LaserJet 5Si and 5Si M
4-76Guide to Printers and PrintingHewlett–Packard LaserJet 8000 and 8500 Color PrintersOutput Bins The base LaserJet 8500 Color and LaserJet 8000 prin
4-77Printer, Plotter, and Spooler Subsystem ProgrammingNumber of Copies The LaserJet 8000 and 8500 Color printers support printing copiesinternal. Wit
4-78Guide to Printers and PrintingLexmark 4227 Forms Printer Paper Source Paper source selection is supported by using the –u flag ofthe qprt command.
4-79Printer, Plotter, and Spooler Subsystem ProgrammingLexmark Optra Laser Printer Paper Source Paper source selection is supported for both the enhan
4-80Guide to Printers and PrintingPrint Resolution The Optra plus printer supports print resolution of 300, 600, and1200 dpi using the –q flag of the
4-81Printer, Plotter, and Spooler Subsystem ProgrammingLexmark Optra Plus LaserPrinter Paper Source Paper source selection is supported for both the e
4-82Guide to Printers and PrintingPrint Resolution The Optra Plus printer supports print resolution of 300, 600, and1200 dpi using the –q flag of the
4-83Printer, Plotter, and Spooler Subsystem ProgrammingCollation The Optra Plus printer supports collation of multiple copies of a printjob internally
1-7Printers, Print Jobs, and Queues Overview for UsersFor example, to request the myfile file to be printed on the first available printerconfigured f
4-84Guide to Printers and PrintingPaper SizePaper size selection is supported by using the qprt command flags,–O and –Q. The –O flag controls paper ve
4-85Printer, Plotter, and Spooler Subsystem ProgrammingPitch Pitch selection is supported for the PCL emulation by using the –pflag for pitch and the
4-86Guide to Printers and PrintingLexmark Optra Color 40 PrinterPaper Source Paper source selection is supported for both the PCL 5 emulationand the P
4-87Printer, Plotter, and Spooler Subsystem ProgrammingPitch Pitch selection is supported for the PCL emulation by using the –pflag for pitch and the
4-88Guide to Printers and PrintingLexmark Optra Color 45 PrinterPaper Source Paper source selection is supported for both the PCL 5 emulationand the P
4-89Printer, Plotter, and Spooler Subsystem ProgrammingPitch Pitch selection is supported for the PCL emulation by using the –pflag for pitch and the
4-90Guide to Printers and PrintingLexmark Optra K 1220 PrinterPaper Source Paper source selection is supported for both the ”enhanced PCL (R)5e emulat
4-91Printer, Plotter, and Spooler Subsystem ProgrammingPaper Size Paper size selection is supported by using either one or both of theqprt command fla
4-92Guide to Printers and PrintingPitch Pitch selection is supported for the PCL emulation by using the –pflag for pitch and the –s flag for font name
4-93Printer, Plotter, and Spooler Subsystem ProgrammingLexmark Optra C Color LaserPrinter Printing ColorFiles in PCL 5Emulation Mode To print color fi
1-8Guide to Printers and PrintingCanceling a Print Job (qcan Command) You can cancel any job in the print queue with the Web-based System Manager fast
4-94Guide to Printers and PrintingPitch Pitch selection is supported for the PCL 5 emulation by using the –pflag for pitch and the –s flag for font na
4-95Printer, Plotter, and Spooler Subsystem ProgrammingLexmark Optra E LaserPrinter Paper SourcePaper source selection is supported for both the PCL 5
4-96Guide to Printers and PrintingPrint Resolution The Optra E printer supports print resolution of 300 and 600 dpiusing the –q flag of the qprt comma
4-97Printer, Plotter, and Spooler Subsystem ProgrammingLexmark Optra N LaserPrinter Paper Source Paper source selection is supported for both the enha
4-98Guide to Printers and PrintingPaper Size Paper size selection is supported by using –O and –Q flags of theqprt command. The –O flag controls paper
4-99Printer, Plotter, and Spooler Subsystem ProgrammingPitchPitch selection is supported for the PCL 5 emulation by using the –pflag for pitch and the
4-100Guide to Printers and PrintingSeparator PagesThe Optra N printer supports internally generated separator pages.This feature is controlled by the
4-101Printer, Plotter, and Spooler Subsystem ProgrammingStaplesThe –y option controls whether staples are desired or not. Onlycertain paper sizes are
4-102Guide to Printers and PrintingPaper SizePaper size selection is supported by using –O and –Q flags of theqprt command. The –O flag controls paper
4-103Printer, Plotter, and Spooler Subsystem ProgrammingPitchPitch selection is supported for the PCL emulation by using the –pflag for pitch and the
1-9Printers, Print Jobs, and Queues Overview for UsersPrioritizing a Print Job (qpri Command)You can change the priority of a job with the Web-based
4-104Guide to Printers and PrintingLexmark Optra M410 Laser PrinterPage RotationPage rotation selection is supported for the PCL 5e emulation byusing
4-105Printer, Plotter, and Spooler Subsystem ProgrammingPaper SizePaper size selection is supported by using either one or both of theqprt command fla
4-106Guide to Printers and PrintingPitchPitch selection is supported for the PCL 5 emulation by using the –pflag for pitch and the –s flag for font na
4-107Printer, Plotter, and Spooler Subsystem ProgrammingLexmark Optra Se Laser PrinterPage RotationPage rotation selection is supported for the PCL 5e
4-108Guide to Printers and PrintingPaper SizePaper size selection is supported by using –O and –Q flags of theqprt command. The –O flag controls paper
4-109Printer, Plotter, and Spooler Subsystem ProgrammingPitchPitch selection is supported for the PCL 5 emulation by using the –pflag for pitch and th
4-110Guide to Printers and PrintingSeparator Pages The –E flag controls separator pages. The valid values are 0, 1, 2,and 3, which represent NONE, BET
4-111Printer, Plotter, and Spooler Subsystem ProgrammingLexmark Optra T Laser Printer FamilyPage RotationPage rotation selection is supported for the
4-112Guide to Printers and PrintingPaper SizePaper size selection is supported by using –O and –Q flags of theqprt command. The –O flag controls paper
4-113Printer, Plotter, and Spooler Subsystem ProgrammingPitchPitch selection is supported for the PCL emulation by using the –pflag for pitch and the
1-10Guide to Printers and PrintingMoving a Print Job to Another Print Queue (qmov Command)After you have sent a print job to a print queue, you may wa
4-114Guide to Printers and PrintingSeparator Pages The –E flag controls separator pages. The valid values are 0, 1, 2,and 3, which represent NONE, BET
4-115Printer, Plotter, and Spooler Subsystem ProgrammingLexmark Optra W810 Laser PrinterPage RotationPage rotation selection is supported for the PCL
4-116Guide to Printers and PrintingPaper SizePaper size selection is supported by using the –Q flag of the qprtcommand. The first five paper sizes are
4-117Printer, Plotter, and Spooler Subsystem ProgrammingPitchPitch selection is supported for the PCL 5 emulation by using the –pflag for pitch and th
4-118Guide to Printers and PrintingSeparator PagesThe printer supports internally generated separator pages. Thisfeature is controlled by the –E flag
4-119Printer, Plotter, and Spooler Subsystem ProgrammingHole PunchThe Optra W810 printer supports this option if it has an optionalFinisher installed.
4-120Guide to Printers and PrintingPitch, Font, andQualityPitch selection is supported by using the –p flag for the pitch, the –sflag for font name, a
4-121Printer, Plotter, and Spooler Subsystem ProgrammingPrintronix P9012 Line Printer Only the Serial Matrix command set is supported. The P–series co
4-122Guide to Printers and PrintingPrinter Support Support for each printer is provided as a separately installable package. To see a list ofprinters
4-123Printer, Plotter, and Spooler Subsystem Programming• Bull PR–90• Canon LASER SHOT LBP–A404PS/Lite• Canon LASER SHOT LBP–B406/S/D/E/G,A404/E,A304E
1-11Printers, Print Jobs, and Queues Overview for UsersHolding and Releasing a Print Job (qhld Command)After you have sent a print job to a print queu
4-124Guide to Printers and Printing• IBM 4202 Model 2 Proprinter II XL• IBM 4202 Model 3 Proprinter III XL• IBM 4207 Model 2 Proprinter X24E• IBM 4208
4-125Printer, Plotter, and Spooler Subsystem Programming• Lexmark Optra Plus LaserPrinter• Lexmark Optra C Color LaserPrinter• Lexmark Optra E Color L
4-126Guide to Printers and PrintingPass–Through ModeBoth virtual printers and the printer device driver can operate, or function, either inpass–throug
4-127Printer, Plotter, and Spooler Subsystem Programmingand in other similar situations, it does not work with printers. Printers only print the dataw
4-128Guide to Printers and PrintingNote that input data streams such as PostScript are pass–through by definition; theprocessing is performed by the P
4-129Printer, Plotter, and Spooler Subsystem ProgrammingViewing, Formatting, or Modifying Virtual Printer DefinitionsAn IBM 4029 LaserPrinter supports
4-130Guide to Printers and PrintingName Description Value__FLG VALUES THAT MAY BE OVERRIDDEN WITH FLAGS
4-131Printer, Plotter, and Spooler Subsystem ProgrammingName Description Valueia ASCII
4-132Guide to Printers and Printing:056:__FLG:::625:CB:S[B]DyEn::626:CC:S[C]DyEn::627:CD:S[D]DyEn::628:CE:S[E]DyEn::629:CF:S[F]DyEn::630:CG:S[G]DyEn::
4-133Printer, Plotter, and Spooler Subsystem Programming %Ide INCLUDE: (Directory Containing Miscellaneous Modules) ’/pioformat –@’ %Idd I
1-12Guide to Printers and PrintingChecking Print Job Status (qchk Command)You can display the current status information for specified job numbers, qu
4-134Guide to Printers and PrintingModifying the mi, mp, and _d Attributes on a PostScript QueueInput data stream attributes store the pipelines for d
4-135Printer, Plotter, and Spooler Subsystem ProgrammingHow piobe Uses Printer Colon Filespiobe has the ability to generate diagnostic output. A speci
4-136Guide to Printers and PrintingThe flags values used on the command line, a1, Pasc, fp, z1, p12, scourier, C, and N3,can be seen in the section of
4-137Printer, Plotter, and Spooler Subsystem ProgrammingThese file virtual printer attributes are initialized by the piodigest command at the time the
4-138Guide to Printers and PrintingCalculating Page Length Using Printer Colon File EscapeSequencesThe printer colon file for an ASCII queue on an IBM
4-139Printer, Plotter, and Spooler Subsystem ProgrammingPrimary Page Width (–z 0) or Secondary Page Length (–z1), in pelswJ = %G_Q%Pq%?%GWu%{3}%<%t
4-140Guide to Printers and Printing %t <THEN> %{1149} PUSH: (Integer Constant 1149) %e <ELSE> %gq
4-141Printer, Plotter, and Spooler Subsystem Programming %? <IF> %CO PUSH: (1 If –O Flag on Command Line; Otherwise 0) %t
4-142Guide to Printers and Printingvalue popped is less than the first value popped. 1 is less than 3, so a 1 is pushed onto thestack. The %t finds th
4-143Printer, Plotter, and Spooler Subsystem Programming1234567891011121314151617181920212223242526272829303132333435373638wL _l wJ wQ Wu%Cl0%I_l%G_z1
1-13Printers, Print Jobs, and Queues Overview for UsersDEV_BUSY Indicates that:• More than one queue is defined to a printer device (lp0) and anotherq
4-144Guide to Printers and Printing19.%{1} – Pushes a 1 onto the stack.20.%= – Pops the two 1s off the stack, compares them for equality, and pushes t
4-145Printer, Plotter, and Spooler Subsystem ProgrammingThe first item checked in the evaluation of _l (page length) is page orientation (_z). As note
4-146Guide to Printers and Printing• s1 – paper size for tray 1 (upper)• s2 – paper size for tray 2 (lower)• s3 – envelope size for envelope feeder• s
4-147Printer, Plotter, and Spooler Subsystem ProgrammingCalculating Page Width Using Printer Colon File EscapeSequencesThe printer colon file for an A
4-148Guide to Printers and Printing %? <IF> %G_z PUSH: (Page ORIENTATION) %{1} PUSH: (Integer Constant 1) %&
4-149Printer, Plotter, and Spooler Subsystem Programming %< PUSH: (pop2 < pop1 ?) %t <THEN> %? <IF>
4-150Guide to Printers and Printing %d POP –> ASCII String –> OUTPUTThe calculation of wK begins by pushing the value of _Q, the pape
4-151Printer, Plotter, and Spooler Subsystem ProgrammingThe Calculation of Page Width figure depicts the stacks operations (as described above)used to
4-152Guide to Printers and Printing11.%CO – Pushes a 0 onto the stack since the O flag was not used on the command line.12.%t – Pops the 0 off the sta
4-153Printer, Plotter, and Spooler Subsystem Programming41.%* – Pops the top two values (a10 and a 12) off the stack, multiplies them together, andpus
1-14Guide to Printers and PrintingFormatting Files for Printing (pr Command) The pr command performs simple formatting of the files you sent to be pri
4-154Guide to Printers and Printing• u – input paper source – 1 (primary), 2 (alternate), 3 (envelope) – default is primary.• Q – paper size for input
4-155Printer, Plotter, and Spooler Subsystem ProgrammingA u value of 3 will direct the process into the else piece of the outer if–then–else statement
4-156Guide to Printers and PrintingSpooler Job Header and Trailer PagesThe pipelines for generating header and trailer pages are defined by the system
4-157Printer, Plotter, and Spooler Subsystem ProgrammingCustom Header PagesThe root user can create custom header pages for users by modifying the def
4-158Guide to Printers and Printing ’{ if test X”$MYHEADER” = X ; then ’ %Ide INCLUDE: (Directory Containing MiscellaneousModules) ’/pioburs
4-159Printer, Plotter, and Spooler Subsystem ProgrammingModifying the mo Virtual Printer AttributeAll virtual printer definitions contain an attribute
4-160Guide to Printers and PrintingChoose the file option, then choose a printer type. After you choose the IBM 4029LaserPrinter (or whatever is corre
4-161Printer, Plotter, and Spooler Subsystem ProgrammingIn general, the mo attribute in the virtual printer definition for a queue with piobe as theba
4-162Guide to Printers and PrintingFiltersVirtual printer definitions in both Version 3.2.5 and AIX Version 4. contain predefined andopen (undefined)
4-163Printer, Plotter, and Spooler Subsystem ProgrammingThese are the arguments qprt tried to pass to enq. You get to see them because qprt foundecho
1-15Printers, Print Jobs, and Queues Overview for UsersThis prints prog.c with the title MAIN PROGRAM in place of the file name. The modificationdate
4-164Guide to Printers and PrintingSupposing that the application does not allow the insertion of carriage returns into the datastream, you can fix th
4-165Printer, Plotter, and Spooler Subsystem ProgrammingEditing /etc/qconfigThe /etc/qconfig configuration file can be edited with your text editor of
4-166Guide to Printers and Printing
5-1Spooler TroubleshootingChapter 5. Troubleshooting the AIX Spooler Use the information in the following checklists to help resolve printing problem
5-2Guide to Printers and PrintingLocal Printer Checklist • Verify that the qdaemon is running. Make sure there are no forked processes runningfrom the
5-3Spooler TroubleshootingInoperative Printer Checklist Check the following items for locally attached printers that have never worked:• Run the test
5-4Guide to Printers and PrintingRemote Printer Checklist Check the following items for the host acting as the remote print server:• Make sure that al
5-5Spooler TroubleshootingAdapter Considerations The 16–port RS–232 adapter does not support clear to send (CTS). A printer connected tothis adapter w
5-6Guide to Printers and PrintingTerminal–Attached Printer Checklist Check the following items when the printer attached to an ASCII terminal does not
5-7Spooler TroubleshootingConsiderations for 8–Bit Printer Attached to 7–Bit Interface Some printers assume an 8–bit (8 bits per byte) interface to th
1-16Guide to Printers and PrintingPrinting ASCII Files on a PostScript Printer The Text Formatting System includes the enscript filter for converting
5-8Guide to Printers and Printingqdaemon Checklist Under normal circumstances, the qdaemon command starts when the system starts, runsuntil the system
5-9Spooler TroubleshootingQueuing System Problems When the queuing system shows one or more queues in DEV_WAIT and you have verifiedthat the queue is
5-10Guide to Printers and PrintingTesting the qdaemonScenario: Submitting jobs to the spooler causes no discernible spooler activity; this is awell–kn
5-11Spooler Troubleshootingprinters that show RUNNING jobs and verify that at least one job is actually running. If oneor more printers are showing DE
5-12Guide to Printers and PrintingTesting a Spooler QueueWhen spooling jobs from an application, it’s often not clear if a job is actually getting to
5-13Spooler TroubleshootingCopying Spooled JobsParticularly in a remote spooling environment, it can be useful to make a copy of a spooledprint job. W
5-14Guide to Printers and PrintingCleaning Up and Starting OverThis procedure completely clears and restarts the spooler system. All jobs currently qu
X-1IndexIndexSymbols/etc/qconfig file structure, 3-17Numbers5080 Attachment Adapter, 2-14AASCII files, printing on PostScript printer, 1-16ASCII termi
X-2Guide to Printers and Printingdevicecharacteristics, 2-38deleting, 2-42listingprint queue devices, 2-31print queues, 2-31starting and stopping, 2-3
X-3Indexremote printingoverview, 2-47remote host access, 2-52RS–232 adapter, printer considerations, 5-5SSMITprinter paper sizespecifying for Hewlett–
1-17Printers, Print Jobs, and Queues Overview for UsersThere are several flags that may be specified with the qprt command to customize theoutput when
X-4Guide to Printers and Printing
Vos remarques sur ce document / Technical publication remark formTitre / Title :Bull Guide to Printers and Printing Nº Reférence / Reference Nº :86
Technical Publications Ordering FormBon de Commande de Documents TechniquesTo order additional publications, please fill up a copy of this form and se
BULL ELECTRONICS ANGERSCEDOC34 Rue du Nid de Pie – BP 42849004 ANGERS CEDEX 01FRANCE86 A2 37JX 02ORDER REFERENCEPLACE BAR CODE IN LOWERLEFT CORNER
Utiliser les marques de découpe pour obtenir les étiquettes.Use the cut marks to get the labels.AIX86 A2 37JX 02Guide to Printersand PrintingAIX86 A2
Bull Guide to Printers and PrintingAIXSoftwareNovember 1999BULL ELECTRONICS ANGERSCEDOC34 Rue du Nid de Pie – BP 42849004 ANGERS CEDEX 01FRANCE86 A2 3
1-18Guide to Printers and PrintingCommand Summary for Printers, Print Jobs, and Queuescancel Cancels requests to a line pri
2-1Printers, Print Jobs, and Queues for Systems AdministratorsChapter 2. Printers, Print Jobs, and Queues for SystemAdministratorsThe printer subsyste
2-2Guide to Printers and PrintingInclude all printer control information that is unique to that file. For example, tounderscore the title of a book or
2-3Printers, Print Jobs, and Queues for Systems AdministratorsThe main spooler command is the enq command. Although you can invoke this commanddirectl
2-4Guide to Printers and Printing• Receives from the qdaemon command a list of one or more files to be printed.• Uses printer and formatting attribute
2-5Printers, Print Jobs, and Queues for Systems AdministratorsThe formatter filter is made up of two components:• A device–independent formatter drive
2-6Guide to Printers and PrintingQueue Device The queue device is the line or list of items in the /etc/qconfig file thatnormally follows the local qu
2-7Printers, Print Jobs, and Queues for Systems AdministratorsInitial Printer ConfigurationYou can use one process to configure a printer and another
2-8Guide to Printers and Printingwsm printers In the Web-based System Manager Print Queues container, use the menus to completethe steps to configure
2-9Printers, Print Jobs, and Queues for Systems AdministratorsProcedure1. At the system prompt, type:wsm printers In the Web-based System Manager Prin
The following copyright notice protects this book under the Copyright laws of the United States of Americaand other countries which prohibit such acti
2-10Guide to Printers and PrintingNote: If the printer supports more than one type of print data, such as PostScript andASCII, enter a print queue nam
2-11Printers, Print Jobs, and Queues for Systems AdministratorsConfiguring a Printer without Adding a QueueUse the following procedure if you want to
2-12Guide to Printers and PrintingAdditional Queue OperationsThis section describes the following procedures:• Adding a Print Queue Device, on page 2-
2-13Printers, Print Jobs, and Queues for Systems AdministratorsAdding a Print Queue DevicePrerequisitesTo perform this task, you must have root author
2-14Guide to Printers and PrintingAdding Plotter Support with 5080 Prerequisites• The plotter must be physically attached to your system.• The plotter
2-15Printers, Print Jobs, and Queues for Systems AdministratorsCreating a Plotter Setup FileTo send plot files to the plotter, you need a special file
2-16Guide to Printers and PrintingAdding a Local Printer to an Existing QueuePrerequisitesTo perform this task, you must be one of the following:• Roo
2-17Printers, Print Jobs, and Queues for Systems AdministratorsAdding an Xstation Printer to an Existing QueuePrerequisitesTo perform this task, you m
2-18Guide to Printers and PrintingAdding an ASCII Terminal Printer to an Existing QueuePrerequisitesTo perform this task, you must be one of the follo
2-19Printers, Print Jobs, and Queues for Systems AdministratorsAdding an HP JetDirect Printer to an Existing QueuePrerequisitesTo perform this task, y
iiiPrefaceContentsAbout This Book ix. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ch
2-20Guide to Printers and PrintingAdding a File to an Existing QueuePrerequisitesTo perform this task, you must be one of the following:• root• A memb
2-21Printers, Print Jobs, and Queues for Systems AdministratorsConfiguring Nonsupported Printers A nonsupported printer is a device that is not suppli
2-22Guide to Printers and PrintingRS–232Signal Serial Printer Device Driver UseFG Frame ground. Often used as shield.TxD ––> Used to transmit da
2-23Printers, Print Jobs, and Queues for Systems AdministratorsPrinting with Terminal–Attached Printers Many asynchronous ASCII terminals have an auxi
2-24Guide to Printers and Printing– IBM 4208 Model 2 Proprinter XL24E– IBM 4247 Printer– IBM 5204 Quickwriter– IBM 6400 Printer– IBM InfoPrint 40 Prin
2-25Printers, Print Jobs, and Queues for Systems Administrators– Lexmark 4039 Plus LaserPrinter– Lexmark 4079 Color JetPrinter Plus– Lexmark 4227 Form
2-26Guide to Printers and PrintingYou can also perform this task with the SMIT fastpath smit tty .Verifying Terminal OutputAfter you have configured t
2-27Printers, Print Jobs, and Queues for Systems AdministratorsCommands and Control SequencesTerminfo Database The terminfo database contains the capa
2-28Guide to Printers and Printingy1 Indicates the maximum number of characters in a data block.y2 Indicates the number of microseconds to delay betwe
2-29Printers, Print Jobs, and Queues for Systems AdministratorsTerminal–Attached Printing Limitations 1. Only ASCII data should be sent to the printer
ivGuide to Printers and PrintingHolding and Releasing a Print Job (qhld Command) 2-35. . . . . . . . . . . . . . . . . . . . . . . . . . Moving a Job
2-30Guide to Printers and PrintingConfiguring a Printer for an ASCII Display Terminal Prerequisites• You must have connected a serial printer to the A
2-31Printers, Print Jobs, and Queues for Systems AdministratorsListing Print Queues and Print Queue Devices The following procedures apply to both loc
2-32Guide to Printers and PrintingShowing Status of Print QueuesUse the Web-based System Manager to perform this task.Procedure1. At the system prompt
2-33Printers, Print Jobs, and Queues for Systems AdministratorsStarting and Stopping a Print QueuePrerequisitesTo perform these tasks, you must have r
2-34Guide to Printers and PrintingSetting the Default Print QueuePrerequisitesTo perform this task, you must be one of the following:• root• A member
2-35Printers, Print Jobs, and Queues for Systems AdministratorsHolding and Releasing a Print Job (qhld Command)PrerequisitesTo hold or release a print
2-36Guide to Printers and PrintingMoving a Job between QueuesPrerequisitesTo perform this task, you must be one of the following:• The print job owner
2-37Printers, Print Jobs, and Queues for Systems AdministratorsScheduling Print JobsUse the SMIT fast path to perform the following tasks.Prerequisite
2-38Guide to Printers and PrintingChanging or Showing Queue Characteristics The following procedures apply to both local and remote print queues and p
2-39Printers, Print Jobs, and Queues for Systems AdministratorsSpecifying Paper Size PrerequisitesTo perform this task, the print queue must already b
vPrefacePrinter Code Page Translation Tables 4-35. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Stage–1 Translation 4-35.
2-40Guide to Printers and PrintingChanging or Showing Printer Connection CharacteristicsPrerequisitesTo perform this task, you must be one of the foll
2-41Printers, Print Jobs, and Queues for Systems AdministratorsChanging / Showing Pre–Processing FiltersThis procedure describes how to change or show
2-42Guide to Printers and PrintingDeleting a Print QueueThe following procedures apply to both local and remote print queues.Prerequisites• For local
2-43Printers, Print Jobs, and Queues for Systems AdministratorsListing All Supported and Defined PrintersPrerequisitesNone.List All Supported Printers
2-44Guide to Printers and PrintingMoving a Printer to Another Port Prerequisites• The printer must be physically attached to your system.• You must ha
2-45Printers, Print Jobs, and Queues for Systems AdministratorsChanging or Showing Printer CharacteristicsPrerequisiteA printer must have been added.P
2-46Guide to Printers and PrintingDeleting a PrinterThis procedure removes a printer from the system. Deleting a printer does not remove anyprint queu
2-47Printers, Print Jobs, and Queues for Systems AdministratorsRemote Printing OverviewRemote printing allows different computers to share printers. T
2-48Guide to Printers and PrintingThe following sections discuss how to configure, use and manage a remote printingenvironment:• The rembak Program• T
2-49Printers, Print Jobs, and Queues for Systems AdministratorsNote: The /etc/hosts.equiv file defines which computers on a network are allowed toexec
viGuide to Printers and PrintingCanon LASER SHOT LBP–B406S/D/E/G, A404/E, A304E 4-73. . . . . . . . . . . . . . . . . . Dataproducts LZR 2665 Laser Pr
2-50Guide to Printers and PrintingManaging and Using Remote Printers and Queues In order to print to a remote system, you must set up a remote queue o
2-51Printers, Print Jobs, and Queues for Systems AdministratorsConfiguring a Remote Host as a Print Server The host to be used as a print server must
2-52Guide to Printers and PrintingUsing Remote Host Access for PrintingPrerequisites• Your system must be configured to communicate as a remote print
2-53Printers, Print Jobs, and Queues for Systems AdministratorsUsing the lpd Remote SubsystemPrerequisites• Your system must be configured to communic
2-54Guide to Printers and PrintingShowing Status of Printer Server SubsystemUse the SMIT fast path to perform this task.Procedure1. At the system prom
2-55Printers, Print Jobs, and Queues for Systems AdministratorsPrinter Queuing System Status Conditions If a printer/device is added as a tty device,
2-56Guide to Printers and PrintingDOWN Specifies that the device driver cannot communicate with the printer(CD or CTS dropped or is low) after TIMEOUT
3-1Spooler OverviewChapter 3. Spooler Overview The job of the spooler, also called the queuing system, is to manage printer use, especiallyon systems
3-2Guide to Printers and PrintingSpooler IntroductionThis section provides an overview of the spooler mechanisms used by Version 3.2.5 andAIX Version
3-3Spooler OverviewSpooler Terminology The following terms relate to the spooler overview.SpoolerThe AIX spooler is a collection of programs, configur
viiPrefaceChapter 5. Troubleshooting the AIX Spooler 5-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Local Printer Checklist 5-2. . . .
3-4Guide to Printers and Printing• For print jobs, uses printer and formatting attributes from the database, overridden by anyflags specified on the c
3-5Spooler Overview• Diablo 630• ditroffPrinter DevicesA printer/plotter device is a special file in the /dev/directory for a real printer. This file
3-6Guide to Printers and PrintingThe Generic AIX SpoolerThe AIX Version 3 and Version 4 spooler is not specifically a print job spooler but a generics
3-7Spooler OverviewSpooler Parts The AIX spooler can be viewed as a process or a subsystem with a beginning,points–in–between, and an ending. To accom
3-8Guide to Printers and PrintingSpooler Data Flow Part I The general flow of a job through the AIX Spooler is depicted in the Printing with AIXOperat
3-9Spooler Overviewcan also send an extensive amount of control data to a printer, for instance to initialize theprinter to a specific mode before the
3-10Guide to Printers and PrintingSpooler Data Flow Part IIThe commands lp, lpr, qprt, and enq can be used to submit a job to the spooler forprocessin
3-11Spooler OverviewIn all versions of AIX prior to Version 4, the qdaemon assigns the job a job number when itaccesses the JDF and reads its contents
3-12Guide to Printers and PrintingOverview of Backend Processing The backend for a queue is begun by qdaemon; the qdaemon determines that a job’s turn
3-13Spooler OverviewData stream Flow for Common Print Jobs(piobe)(Receives arguments via argc, argv[] from qdaemon)shell pioformat pioout device drive
Komentáře k této Příručce