*BSD News Article 85583


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!blackbush.xlink.net!fu-berlin.de!informatik.tu-muenchen.de!main.Germany.EU.net!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd,comp.unix.bsd.misc
Subject: Re: Email from lpr
Date: 29 Dec 1996 09:39:31 GMT
Organization: interface business GmbH Dresden
Lines: 28
Message-ID: <5a5e8j$d3k@innocence.interface-business.de>
References: <01bbf098$f9628820$f5010e0a@pc1445.defiance.com.au>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: uriah.interface-business.de
X-Newsreader: knews 0.9.6
Xref: euryale.cc.adfa.oz.au comp.unix.bsd:16857 comp.unix.bsd.misc:1863

"Jamie Townsend" <jamiet@defiance.com.au> writes:

>Does anyone know how to get a userid from within the lpr printer
>redirection script??


PRINTCAP(5)               FreeBSD Programmer's Manual              PRINTCAP(5)

NAME
     printcap - printer capability data base
...

     The if filter is invoked with arguments:

           if [-c] -wwidth -llength -iindent -n login -h host acct-file
                                             ^^^^^^^^^^^^^^^^

You can't do this with an `of' filter however.

If you are not interested in any printing at all, use lp=/dev/null.
In this case, only your filter is being called.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)