Got a few responses:
Chris Jankowski <chris_at_lagoon.meo.dec.com>
- "can't be done" I love these guys!
Wayne Herringe <syswjh_at_devetir.qld.gov.au>
- "man lpr says:
All other filters are called as:
filter -xwidth -ylength -nlogin -h host acct-file"
Got a few questions:
Helleb# Knut <bgk1142_at_bggfu2.nho.hydro.com>
<johanl_at_basys.svt.se>
Used archie to locate a routine on the 'net:
vtprint by Garrett D'Amore <garrett_at_sciences.sdsu.edu>
http://sunsite.unc.edu/mdw/HOWTO/Serial-HOWTO-13.html#ss13.4
While Wayne correctly points out the man doc, I found that the only information
carried in the host parameter was my login name (without device information). Given
the chance of multiple logins, the parameters did not offer enough information.
In the end I wrote a simple wrapper that replaces /usr/bin/lpr. The wrapper parses the
first one or two lpr parameters for the fake /etc/printcap device C (as in "lpr -PC", get
it?) If the print device is not C, then pass all lpr arguments to the real lpr (renamed
/usr/bin/lpr.orig). Finally, the PRINTER environment variable was set to C just to catch
any strays.
Regards,
Graydon Mah, Database Administrator,
University College of the Fraser Valley,
Abbotsford, British Columbia, Canada
Received on Thu Mar 09 1995 - 11:25:52 NZDT