Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!uccba!ucunix!rainwatr From: rainwatr@ucunix.SAN.UC.EDU (Don Rainwater) Newsgroups: comp.unix.ultrix Subject: Restricting what goes to a printer... Keywords: objects execs binary flag-pages Message-ID: <61@ucunix.SAN.UC.EDU> Date: 15 Nov 89 16:49:27 GMT Organization: University of Cincinnati Lines: 25 We're having problems with people printing non-text files to our printers. While the filtering that lpr does is fine for cases like 'lpr a.out', it does no checking for things like 'lpr file.dat' (where file.dat is not a text file) or 'cat a.out | lpr'. Is there something I can set in printcap (or elsewhere) so that the printer will not get (most) characters outside the printable range? I've tried 'nc=true' to eliminate control characters, but that didn't do much (any) good. Also, is there a way that I can eliminate the printing of the flag page? I tried sb=true, but that didn't work. In general, is there something I have to do to make a change to printcap effective besides making the change to printcap? The docs say that printcap settings are dynamic, but I'm not totally convinced. Thanks for any assistance. -- Don Rainwater, Univ. of Cincinnati Computer Center rainwatr@ucunix.san.uc.edu rainwatr@ucbeh.san.uc.edu rainwatr@ucbeh.bitnet