From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,70f3e37303eec14a X-Google-Attributes: gidfee84,public From: Phil Farrell Subject: Re: Creating a Temporary Printer queue? Date: 1998/03/11 Message-ID: <35073ACE.3547@pangea.stanford.edu>#1/1 X-Deja-AN: 333175119 Content-Transfer-Encoding: 7bit References: <01bd460b$e93cc360$804600ce@ggallen.slackinc.com> <3506E5C7.680C@hlthsrc.com> <01bd4d46$04f8b6e0$804600ce@ggallen.slackinc.com> To: George Gallen Content-Type: text/plain; charset=us-ascii Organization: Stanford University School of Earth Sciences Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 George Gallen wrote: > Why? We have 3 line printers and about 20 different forms we could print on > It would be nice to have people (who can't see what form in what printer) > just spool their jobs to a queue for that form. Then the person doing the > printing > when they load that form on whatever printer, have all jobs to that queue > (form) > print to that printer. > > Any other ideas?? anyone?? You could create a "dummy" print queue, say "form1", whose "if:" input filter is simply a small script that calls "lpr -Prealprinter". The effect is that jobs sent to the dummy print queue are then forwarded on to the real print queue. Now, you can simply stop and start the dummy queue to control printing. No need to mess with the /dev files. By the way, I think you want to use "lpc enable" to allow queueing, but no printing. When ready to print, do "lpc start"; to stop, do "lpc stop". You will still need "sudo" or equivalent to allow non-root users to run lpc. Or you could try manipulating the permission on the "lpc" program itself. Make it setuid to "root", and make it executable only by root and some group that you create, and then put the accounts that need access into that group. Sometimes this doesn't work because some system management programs have an internal check to make sure that their "real" id is root, not just their effective one. But it is easy to try. -- Phil Farrell, Computer Systems Manager Stanford University School of Earth Sciences farrell@pangea.stanford.edu