Return to BSD News archive
Xref: sserve comp.sys.sun.admin:27212 comp.unix.bsd:13585 Path: sserve!newshost.anu.edu.au!munnari.oz.au!foxhound.dsto.gov.au!fang.dsto.gov.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!news.cs.su.oz.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!EU.net!sunic!ugle.unit.no!ravn.runit.sintef.no!rolfh From: rolfh@runit.sintef.no (Rolf Petter Halle) Newsgroups: fa.sun-manager,comp.sys.sun.admin,comp.unix.bsd Subject: OF/IF filter problems with lpr Date: 15 Mar 1994 08:15:51 GMT Organization: Computing center at the University of Trondheim, Norway Lines: 34 Distribution: world Message-ID: <2m3qrn$jtc@ugle.unit.no> NNTP-Posting-Host: ravn.runit.sintef.no Keywords: lpd,lpr,filters Hi! I have a problem with BSD spooling and the use of IF/OF filters. The setup is as follows: The OF filter generates an ASCII banner page which is read and converted by the IF filter. Then the first IF filter sends the converted banner, as well as the input file. Later invocations of IF will only send the converted data. This gives me one banner page for a series of files (and is the desired behaviour). If I invoke the lpr command multiple times, I would have thoght that I would get one banner page per file. Instead, it looks like lpd tries to be intelligent, and checks the spool area before exiting. If it finds any new data, these are printed, but without a new invocation of the OF filter. Thus, I end up with a series of files with only one banner pager. No big problem if the same user printed all the files, but the behaviour is the same, even when different users are using lpr. So, have I completely misunderstood the matters? Is this how it is supposed to be, and are there any ways around the problem? Please mail any answers to me, and I'll post a summary. Thanks Rolf Halle <Rolf.Halle@runit.sintef.no>