Date: Thu, 12 Sep 2002 18:37:35 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Garance A Drosihn <drosih@rpi.edu> Cc: FreeBSD-Questions@FreeBSD.ORG Subject: Re: lpr Job Name Message-ID: <Pine.BSF.4.21.0209121826280.47166-100000@wonkity.com> In-Reply-To: <p05111701b9a6c5232acc@[128.113.24.47]>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Sep 2002, Garance A Drosihn wrote: > >(These particular files are going to a network printer/copier that > >stores them. A user walks up to the printer, selects their jobs, > >and prints them. However, twenty files called "Standard input" > >really makes it difficult for them to prioritize. 8-) > > If they're named "standard input", then someone is doing: > someprog | lpr -Pblah Err...well, actually, the files have gone through one or more input filters (if=) that are piping them through things like enscript. I think lpr actually writes "stdin" to the N line in the control file when it doesn't have a file name. > A simple and mindless workaround would be to: > someprog | cat > /tmp/$USER/NameIWant > lpr -r -Pblah /tmp/$USER/NameIWant Well, yes, although in a couple of newsgroups I think that would be nominated for a "useless use of cat". 8-) There's another issue: lpd doesn't feed the job name to an input filter. If the input filter sends the job to another queue, the job name is lost. For symmetry, lpd needs to add a -N parameter and job name to the parameters it sends to input filters. I did hack in a quick -N flag to lpr, and--much to my surprise--it worked fine. Haven't looked at lpd yet. -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209121826280.47166-100000>