Problem
I am trying to use the filter command to print a specific page or group of pages from a text file. I have followed the example in the System Administration Guide Chapter 4, but when I use the command:
lp -d <printername> -P <page_range> <file_name>I get the message:UX:lp: ERROR: There is no filter to convert the file content. TO FIX: Use the lpstat -p -l command to find a printer that can handle the file type directly, or consult with your system administrator.
Cause
The documentation incorrectly states that the /usr/spool/bin/lp/pages
filter script is included with the system. This script is
not included on the system for the above SCO OpenServer releases. Solution
This documentation error has been corrected in SCO OpenServer Release 5.0.5 by placing an erratum in the "SCO OpenServer Features and Limitations" document.
You can read this erratum in the OpenServer 5.0.5 online documentation 'Help' (ScoHelp) by choosing SCO OpenServer Features and Limitations -> Chapter 2 -> Documentation Errata -> System Administrator's Guide Error (included below):
System Administrator's Guide Error"Creating and using printer filters" describes how to set up a printer filter that allows a user to print only selected pages of a file. It lists an executable file, /usr/spool/lp/bin/pages, as part of the configuration. This file does not exist on the system, and the procedure shown does not work.
As a workaround for SCO OpenServer 5.0.4 and 5.0.5, download a free
(unsupported) version of the pages filter from the following
ftp site:ftp://ftp.armory.com/pub/scriptsIn this directory you will find a script called "pages".
Download the pages script and move it to the /usr/spool/lp/bin
directory on your system. You should now be able to use the
-P option in your lp commands.