Technical article 105942

The pages print filter does not work as documented under SCO OpenServer 5.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

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/scripts
In 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.

From the Xinuos technical article database, record 105942. Reproduced with permission. The original is at www.sco.com/ta/105942, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.