From owner-freebsd-hackers Wed May 10 9:59: 4 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from p2.acadia.net (p2.acadia.net [205.217.210.2]) by hub.freebsd.org (Postfix) with ESMTP id 5E1D637B690 for ; Wed, 10 May 2000 09:58:57 -0700 (PDT) (envelope-from tbuswell@acadia.net) Received: from smpbox (ip142167011112.acadia.net [142.167.11.112]) by p2.acadia.net (8.9.3/8.9.3) with ESMTP id NAA11694; Wed, 10 May 2000 13:06:51 -0400 (EDT) Received: (from tbuswell@localhost) by smpbox (8.9.3/8.9.3) id NAA57865; Wed, 10 May 2000 13:03:47 -0400 (EDT) (envelope-from tbuswell) From: Ted Buswell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 10 May 2000 13:02:47 -0400 (EDT) To: Garance A Drosihn Cc: hackers@FreeBSD.ORG Subject: Re: Looking for advice on lpr/lpd changes In-Reply-To: References: X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14617.37135.323534.539710@smpbox> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Garance A Drosihn writes: > At 10:23 AM -0400 5/10/00, Garance A Drosihn wrote: > >I was thinking of having lpr understand options given in a > >printer name. Thus, for printer 'myptr', you could send to: > > lpr -Pmyptr (obviously...) > > lpr -Pmyptr-h > > lpr -Pmyptr-m > > lpr -Pmyptr-mh or -Pmyptr-hm (both would work). > >This would not allow them to set ANY option via the printer > >name, but it would allow those two, which are the most ones > >most often requested. > > People have mentioned that they already have hyphens in > printer names. How about if I use a / instead? Eg: > lpr -Pmyptr/h > lpr -Pmyptr/m > > Would anyone have slashes in a printer name? Any other > suggestions also welcome... Just looking for a good way > for samba (WinXX) users to select -h or -m options when > their jobs go thru our unix print servers. Another way of approaching the problem would be to head off the problem as soon as you can: in Samba. Right now, you could write a shell script to create all of the various permutations of printer shares, each one with an appropriate "print command" directive in your smb.conf. Or alternatively, hack the appropriate bits in Samba so that you can have your clients connect to \\s\p\options to get lpr printer 'p' off of server 'p', with given options. For example: \\server\printer\noheader,email would result in Samba invoking "lpr -Pprinter -h -m". This isn't any different from your proposed mod to lpr, it just shuffles where the work is done. $.02 -Ted > > > --- > Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu > Senior Systems Programmer or drosih@rpi.edu > Rensselaer Polytechnic Institute > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message