From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075318306481.tru64-unix-managers.marc@archive.invalid> From: Graydon Mah Date: Thu, 09 Mar 1995 16:20:27 +0000 To: tru64-unix-managers Subject: Got a few responses: X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075318306481 Got a few responses: Chris Jankowski - "can't be done" I love these guys! Wayne Herringe - "man lpr says: All other filters are called as: filter -xwidth -ylength -nlogin -h host acct-file" Got a few questions: Helleb# Knut Used archie to locate a routine on the 'net: vtprint by Garrett D'Amore 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