is a simple Internet Printing Protocol (IPP) server conforming to the IPP Everywhere (PWG 5100.14) specification. It can be used to test client software or act as a very basic print server that runs a command for every job that is printed.
adds environment variables starting with "IPP_" for all IPP Job attributes in the print request.
For example, when executing a command for an IPP Job containing the "media" Job Template attribute, the "IPP_MEDIA" environment variable will be set to the value of that attribute.
<p>In addition, all IPP "xxx-default" and "pwg-xxx" Printer Description attributes are added to the environment.
For example, the "IPP_MEDIA_DEFAULT" environment variable will be set to the default value for the "media" Job Template attribute.
<p>Enumerated values are converted to their keyword equivalents.
For example, a "print-quality" Job Template attribute with a enum value of 3 will become the "IPP_PRINT_QUALITY" environment variable with a value of "draft".
This string conversion only happens for standard Job Template attributes, currently "finishings", "orientation-requested", and "print-quality".
<p>Finally, the "CONTENT_TYPE" environment variable contains the MIME media type of the document being printed, the "DEVICE_URI" environment variable contains the device URI as specified with the "-D" option, the "OUTPUT_FORMAT" environment variable contains the output MIME media type, and the "PPD" environment variable contains the PPD filename as specified with the "-P" option.
<ddstyle="margin-left: 5.0em">Sets the named attribute(s) to the given values.
Currently only the "job-impressions" and "job-impressions-completed" Job Status attributes and the "marker-xxx", "printer-alert", "printer-alert-description", "printer-supply", and "printer-supply-description" Printer Status attributes can be set.
<dt><b>DEBUG: </b><i>Debugging message</i>
<ddstyle="margin-left: 5.0em">Logs a debugging message if at least two -v's have been specified.
<dt><b>ERROR: </b><i>Error message</i>
<ddstyle="margin-left: 5.0em">Logs an error message and copies the message to the "job-state-message" attribute.
<dt><b>INFO: </b><i>Informational message</i>
<ddstyle="margin-left: 5.0em">Logs an informational/progress message if -v has been specified and copies the message to the "job-state-message" attribute unless an error has been reported.
<dt><b>STATE: </b><i>keyword[,keyword,...]</i>
<ddstyle="margin-left: 5.0em">Sets the printer's "printer-state-reasons" attribute to the listed keywords.
<dt><b>STATE: -</b><i>keyword[,keyword,...]</i>
<ddstyle="margin-left: 5.0em">Removes the listed keywords from the printer's "printer-state-reasons" attribute.
<dt><b>STATE: +</b><i>keyword[,keyword,...]</i>
<ddstyle="margin-left: 5.0em">Adds the listed keywords to the printer's "printer-state-reasons" attribute.