From owner-freebsd-hackers Thu May 11 13:29:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.100.7]) by hub.freebsd.org (Postfix) with ESMTP id 2012237BAA9 for ; Thu, 11 May 2000 13:29:28 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.9.3/8.9.3) with ESMTP id QAA189274; Thu, 11 May 2000 16:29:15 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <14617.37135.323534.539710@smpbox> References: <14617.37135.323534.539710@smpbox> Date: Thu, 11 May 2000 16:29:18 -0400 To: Ted Buswell From: Garance A Drosihn Subject: Re: Looking for advice on lpr/lpd changes Cc: hackers@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 1:02 PM -0400 5/10/00, Ted Buswell wrote: >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. We have >200 printers in printcap, and each of those printers has at least two (and usually four or more) names. To add two options (-h and -m), would mean more than 4*5*200 names. Ick... >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". Initially this seemed like the wrong idea, but the more I think about it the more I like it. Certainly if I got that working, it would avoid all possible conflicts with any setup anyone currently has. And it could be readily extended to a lot more than just those two options. >This isn't different from your proposed mod to lpr, it just >shuffles where the work is done. Well, it's different in one major way. Here at RPI, I have complete and utter control over lpr. A different guy does samba, and he's buried with other projects right now... :-) Still, I'll have to think about this some more. I think this is probably the most promising strategy to consider. Thanks! --- 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