🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10839

Re: initialization string for printer

#10839
From: Caleb Hess
Date: Thu, 09 Feb 1989 06:19
12 lines
1247 bytes
david@wubios.wustl.edu (David J. Camp) writes:
>I am trying to set up an initialization string that is sent to a printer
>every time I print a file.  I am currently using the 'ff' option in
>/etc/printcap, which takes effect after the header page.  ...

What you need to do is write a simple output filter (called with the 'of'
option in /etc/printcap).  The filter writes the initialization string to
stdout, then copies stdin to stdout until EOF.  See "4.3BSD Line Printer
Spooler" for a complete description of how filters work.  It's in ch. 19
of "System and Network Administration" in my Sun documentation.

hess@iuvax.cs.indiana (Caleb Hess)				KE9LC
Technical Details
Message-ID: <17186@iuvax.cs.indiana.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-request
References: <8901210105.AA10492@wubios.WUstl.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-request
From: hess@iuvax.cs.indiana.edu (Caleb Hess)
Newsgroups: comp.sys.sun
Subject: Re: initialization string for printer
Message-ID: <17186@iuvax.cs.indiana.edu>
Date: 9 Feb 89 06:19:43 GMT
References: <8901210105.AA10492@wubios.WUstl.EDU>
Sender: usenet@rice.edu
Organization: Indiana University, Bloomington
Lines: 12
Approved: Sun-Spots@rice.edu
Original-Date: 3 Feb 89 15:40:32 GMT
X-Sun-Spots-Digest: Volume 7, Issue 147, message 2 of 13
X-Issue-Reference: v7n127