up previous next contents
Next: Exercise Up: Temporary files created during Previous: /usr/spool/lp/temp Directory   Contents

Merged request log - /usr/spool/lp/logs/requests

The two log files described in the previous sections are combined into one file and appended to the /usr/spool/lp/logs/requests file when the job leaves the printer queue. This file is in an easy-to-read format, and can easily be read by Unix shell programs.

Codes contained in the requests log file are shown in the table below (see pages 180-181 of the SCO System Administrator's Guide).

Request log codes

Letter Content of the file "=" This is the separator line, containing the request ID, the user and group IDs of the user, the total number of bytes in the original (unfiltered) files, and the time when the request was queued. These items are separated by commas and are in the order just named. The user ID, group ID, and sizes are preceded by the word uid, gid, and size, respectively.

C The number of copies printed.    
D The printer or class destination or the word any.    
F The name of the file printed. This line is repeated for    each file printed, and files are printed in the order given.    
f The name of the form used.    
H The type of special handling used, spelled out (resume, hold, immediate). The only useful value found in this line is immediate. 
N  The type of alert used when the print request is success-  fully completed. The type is the letter M if the user was  notified by mail, or W if the user was notified by a message to his or her terminal.  
O The -o options.  
P The priority of the print request.  
p The list of pages printed.  
r This single letter line is present if the user asked for raw  processing of the files (the -r option of the lp command.)  
S The character set or print wheel used.  
s The outcome of the request as a combination of individual bits expressed in hexadecimal form. While several bits are used internally by the Spooler, the most important bits are listed below:   OxOO04 Slow filtering finished successfully.   OxOOIO Printing finished successfully.   OxOO40 The request was canceled.   OxO100 The request failed filtering or printing.  
T The title placed on the banner page.  
t The type of content found in the file(s).  
U The name of the user who submitted the print request.  
x The slow filter used for the request.  
Y The list of special modes to give to the filters used to  print the request.  
y The fast filter used for the request.  
z The printer used for the request. This differs from the  destination (the D line) if the request was queued for any  printer or a class of printers or if the request was moved  to another destination by the print service administrator.


up previous next contents
Next: Exercise Up: Temporary files created during Previous: /usr/spool/lp/temp Directory   Contents