lpd print filter


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Fri Dec 15 09:46:43 2000
Path: news.randori.com!newsfeeder.randori.com!ptdnetP!newsgate.ptd.net!newsfeed.mathworks.com!enews.sgi.com!hobbes.caldera.com!johnd
From: johnd@sco.COM (John DuBois)
Newsgroups: comp.unix.sco.misc
Subject: Re: How the #$%&^* can I filter lpr/lpd output on SCO OS5?
Date: 15 Dec 2000 00:58:52 GMT
Organization: The Santa Cruz Operation, Inc.
Lines: 45 Message-ID: <91bqcc$2r3$1@hobbes.caldera.com> References: <3A38FEBB.6EEBB92B@nxs.net>
NNTP-Posting-Host: tahoe.caldera.com
Xref: news.randori.com comp.unix.sco.misc:69973
X-Mozilla-Status: 8010
X-Mozilla-Status2: 00000000


Hate these ads?




In article <3A38FEBB.6EEBB92B@nxs.net>,
Michael Sweeden  <msweeden@nxs.net> wrote:
+I have a client I am migrating to an SCO OpenServer 5.0.6 system on
+Saturday. I have set up lpr/lpd printing to several print servers on the
+network, and would like to to a couple of simple things to the output in
+some instances, like insert a trailing formfeed, and CR-CRNL mapping. I
+found you can supposedly add an "of=filtername" to the /etc/printcap to
+use a filter, so I tried creating one (though I can find nothing in the
+documentation on creating one to do these things), and the filter does
+not appear to be executed. A TA on the SCO support site says that the
+"of=filtername" indeed does not work, that it has been reported to SCO
+engineering, and that there is no current workaround. What a bummer!














In addition to misdescribing output filters in general, the documentation fails
to note that output filters only work for local printers, not network printers
(a limitation present in the BSD lpd source we started with).  However, this
enhanced capability has added to lpd for future releases.  Contact me if you'd
like a copy of the enhanced lpd.



Here's how the "of" capability is used, both for local printers in the present
release and remote printers in future releases:



If you set "of" to the path to a program, the program will be invoked with two
arguments, like this:



rm=132 -l66



rm=132 indicates that the paper right margin is at the 132nd column,
and -l 66 indicates that the page length is 66 lines.



Just setting e.g. of=/path/to/filter-program won't work if that program isn't
prepared to deal with those arguments.  If you want to use such a program,
create a front end for it that discards any arguments.  E.g. set
of=/usr/local/myfilter and make myfilter a two-line shell script:









#!/bin/ksh
exec /path/to/filter-program





        John
-- 
John DuBois     johnd@caldera.com       KC6QKZ/AE
I wish to God these calculations had been executed by steam. - Charles Babbage













-
Google Friend Connect users can
comment on this page here


Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


ad

Views for this page
Today This Week This Month This Year  Overall
154188 1,384

/Bofcusm/792.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Newsgroup




Unix/Linux Consultants


http://echo3.net/ Unix/Linux Custom Applications, Web Hosting, C/C++ Programming Courses


http://www.cleverminds.net Need expert advice? Want a second opinion? CleverMinds is a one-stop-shop for a wide range of technology solutions. We support Unix, Linux, SCO as well as CMS, ecom, blogs, podcasts, search engines consulting and more. Contact us at web2.0@cleverminds.net 0r (617) 894-1282


UBB Computer Services Support for Openserver, Unixware and Linux. Windows integration with Unix/Linux servers. Hardware, Backup and Networking issues. Located near Sacramento CA, we provide onsite support throughout Northern CA and Nationwide via remote access. We are a SCO Authorized Partner and a Microlite BackupEdge Certified Reseller.



Twitter
  • Dec 4 07:16
    Being tired will cost me at Poker tonight but I don't see how I can squeeze in a nap.
  • Dec 4 04:06
    Wife had a nightmare at 2:00 AM; I never got back to sleep. Gave up at 4:00 and got up.




card_image








Change Congress