Exercises

team bbl


21.1

Translate the IPP error code values listed in ipp.h into error messages. Then modify the print spooler daemon to log a message at the end of the printer_status function when the IPP header indicates a printer error.

21.2

Add support to the print command and the printd daemon to allow users to request double-sided printing. Do the same for landscape and portrait page orientation.

21.3

Modify the print spooler daemon so that when it starts, it contacts the printer to find out what features are supported by the printer so that the daemon doesn't request an option that isn't supported.

21.4

Write a command to report on the status of pending print jobs.

21.5

Write a command to cancel a pending print job.

21.6

Add support for multiple printers to the printer spooler. Include a way to move print jobs from one printer to another.

    team bbl



    Advanced Programming in the UNIX Environment
    Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
    ISBN: 0321525949
    EAN: 2147483647
    Year: 2005
    Pages: 370

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net