Created at 10:58 Jul 23, 2004 by mike, last modified at 10:58 Jul 23, 2004
Short answer: Don't do this, use the Get-Jobs (IPP_GET_JOBS) or Get-Job-Attributes (IPP_GET_JOB_ATTRIBUTES) operations with the cupsDoRequest() function to get the information instead.
Long answer: The cNNNNN files are binary files in the IPP message format. Essentially, each file is a copy of the original Create-Job or Print-Job request with additional job attributes added by the scheduler. You can read the files using the ippReadFile() function or by writing your own code which parses the IPP message format - see the corresponding RFC's for more info.
Normally you should only access these files through the IPP Get-Jobs and Get-Job-Attributes operations, since those operations provide network transparency and proper access control to the information. Also, you need permission to read the files directly, which generally means running as root or the "lp" user since the default permissions do not allow normal users to access them.
Download · Home Page · Listing