[6219] in Athena Bugs
enscript: use default printer
daemon@ATHENA.MIT.EDU (Richard Basch)
Tue Oct 16 12:50:20 1990
Date: Tue, 16 Oct 90 12:49:24 -0400
To: bugs@ATHENA.MIT.EDU, software-suggestions@ATHENA.MIT.EDU
From: Richard Basch <probe@MIT.EDU>
According to enscript(1) [the man page is accurate]:
ENSCRIPT(1) UNIX Programmer's Manual ENSCRIPT(1)
. . .
ENVIRONMENT
. . .
PRINTER (4.2bsd)
the name of a printer (as in the -P option) for lpr to
use. If no -P option is specified, lpr will use this
printer. If neither -P nor PRINTER is set, enscript
will spool to a printer named ``PostScript''.
LPDEST (System V)
the name of a printer (as in the -d option) for lp to
use. If no -d option is specified, lp will use this
printer. If neither -d nor LPDEST is set, enscript
will spool to a printer class named ``PostScript''.
Given that we have default printers setup in Hesiod, should we not also
make "enscript" use these?
One way of setting it in your ~/.environment file is:
set p=`hesinfo $host cluster | grep lpr`
if ($status == 0) then
set q=($p)
setenv PRINTER $q[2]
unset q
endif
unset p
However, this is a fairly obscene way just to get "enscript" to do the
right thing...
-Richard