Restricting what goes to a printer...

Don Rainwater rainwatr at ucunix.SAN.UC.EDU
Thu Nov 16 03:49:27 AEST 1989


	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 at ucunix.san.uc.edu
rainwatr at ucbeh.san.uc.edu
rainwatr at ucbeh.bitnet



More information about the Comp.unix.ultrix mailing list