Date: Thu, 12 Sep 2002 18:46:16 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: Warren Block <wblock@wonkity.com>, FreeBSD-Questions@FreeBSD.ORG Subject: Re: lpr Job Name Message-ID: <p05111701b9a6c5232acc@[128.113.24.47]> In-Reply-To: <Pine.BSF.4.21.0209112008330.44410-100000@wonkity.com> References: <Pine.BSF.4.21.0209112008330.44410-100000@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 8:20 PM -0600 9/11/02, Warren Block wrote: >Google shows that numerous people over the last few years have >wanted the ability to change the job name. > >I'm considering adding a -N option to lpr to set this. The first >problem I can see is that if the user prints multiple files >(lpr -Nmyjob file1 file2 file3), such a name option would be >questionable. Should it set the same name for each file? >Maybe only the first one? This is an interesting idea. I'm operating on very little sleep after a very long night, but let me think about this and see what I would suggest. >The question is: has anyone else got a better idea or a workaround? > >(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 A simple and mindless workaround would be to: someprog | cat > /tmp/$USER/NameIWant lpr -r -Pblah /tmp/$USER/NameIWant This could run into problems in some cases where an 'lpr -N' won't, and that skips over a few bells and whistles that you'd want. But I wrote it the way I did so that you'd see it's easy to write that (plus some bells and whistles) into a quick script. Call the script 'mylpr', and users could use it instead of the lpr command. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu 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?p05111701b9a6c5232acc>