Path: 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 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