* Creating a Temporary Printer queue?
@ 1998-03-02 5:00 George Gallen
1998-03-11 5:00 ` John McIntire
0 siblings, 1 reply; 4+ messages in thread
From: George Gallen @ 1998-03-02 5:00 UTC (permalink / raw)
What I want to do is create printer queues that are not linked to a
printer.
Ex. Have say 3 queues (1=formx, 2=formy, 3=formz). This way if a job was
needed for a specific type of form it would go into that queue. Then when
we are ready "attach/link" that queue to a specific Device (printer), which
might not be the same device each time. We have 3 different high speed
printers.
Right now, we have a queue for each printer, if you change paper and
someone
somewhere else in the building that can't see that the wrong paper is in
the
printer tries to print, well...It doesn't look so good.
I am running DU3.2c on a 2100 system (BSD lpd/lpr).
Any Ideas?
Thanx
George Gallen
ggallen@slackinc.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Creating a Temporary Printer queue?
1998-03-02 5:00 Creating a Temporary Printer queue? George Gallen
@ 1998-03-11 5:00 ` John McIntire
1998-03-11 5:00 ` George Gallen
0 siblings, 1 reply; 4+ messages in thread
From: John McIntire @ 1998-03-11 5:00 UTC (permalink / raw)
Send the jobs to a seperate spooling directory (sd parameter) and then
manually spool the jobs (lpr -Pprinter name job)
George Gallen wrote:
>
> What I want to do is create printer queues that are not linked to a
> printer.
> Ex. Have say 3 queues (1=formx, 2=formy, 3=formz). This way if a job was
> needed for a specific type of form it would go into that queue. Then when
> we are ready "attach/link" that queue to a specific Device (printer), which
> might not be the same device each time. We have 3 different high speed
> printers.
>
> Right now, we have a queue for each printer, if you change paper and
> someone
> somewhere else in the building that can't see that the wrong paper is in
> the
> printer tries to print, well...It doesn't look so good.
>
> I am running DU3.2c on a 2100 system (BSD lpd/lpr).
> Any Ideas?
>
> Thanx
> George Gallen
> ggallen@slackinc.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Creating a Temporary Printer queue?
1998-03-11 5:00 ` John McIntire
@ 1998-03-11 5:00 ` George Gallen
1998-03-11 5:00 ` Phil Farrell
0 siblings, 1 reply; 4+ messages in thread
From: George Gallen @ 1998-03-11 5:00 UTC (permalink / raw)
What I was looking to do was to link a device to print queue rather than
linking a queue to a device. Sounds like HUH?
Normally, a print queue sends jobs to a specific device (printer), I don't
want that.
I want jobs to go to a queue and stay there. Then I want to be able to
assign
a device to that queue and allow it empty.
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.
What was suggested:
Setup the queues for each form to print to say: /dev/form/FORM
(/etc/printcap)
With lpc setup those queues for queueing only, no printing (lpc start).
When ready to print all jobs for a form, to
ln -s /dev/printerdevice /dev/form/FORM
lpc start queue FORM (now all the jobs will print)
lpc stop queue FORM (when all forms have printed
I would also have to use sudo to give the printing person access to
lpc.
Your Suggestion:
setup queues for each form with the sd= and no lp= and create each dir
lpr -Pprinter /usr/spool/FORM/df*
lprm -PFORM -
I would need sudo for printing person access to lpr /usr/spool & lprm
I wouldn't want to change the permissions on the directory for security
reasons
(wouldn't want people looking at other jobs that arn't theirs...)
Also suggested:
To use LPRng (which I have downloaded, but haven't tried to compile
and implement yet.
Any other ideas?? anyone??
George Gallen
ggallen@slackinc.com
John McIntire <mcintirj@hlthsrc.com> wrote in article
<3506E5C7.680C@hlthsrc.com>...
> Send the jobs to a seperate spooling directory (sd parameter) and then
> manually spool the jobs (lpr -Pprinter name job)
>
> George Gallen wrote:
> >
> > What I want to do is create printer queues that are not linked to a
> > printer.
> > Ex. Have say 3 queues (1=formx, 2=formy, 3=formz). This way if a job
was
> > needed for a specific type of form it would go into that queue. Then
when
> > we are ready "attach/link" that queue to a specific Device (printer),
which
> > might not be the same device each time. We have 3 different high speed
> > printers.
> >
> > Right now, we have a queue for each printer, if you change paper and
> > someone
> > somewhere else in the building that can't see that the wrong paper is
in
> > the
> > printer tries to print, well...It doesn't look so good.
> >
> > I am running DU3.2c on a 2100 system (BSD lpd/lpr).
> > Any Ideas?
> >
> > Thanx
> > George Gallen
> > ggallen@slackinc.com
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Creating a Temporary Printer queue?
1998-03-11 5:00 ` George Gallen
@ 1998-03-11 5:00 ` Phil Farrell
0 siblings, 0 replies; 4+ messages in thread
From: Phil Farrell @ 1998-03-11 5:00 UTC (permalink / raw)
To: George Gallen
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-03-11 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-02 5:00 Creating a Temporary Printer queue? George Gallen
1998-03-11 5:00 ` John McIntire
1998-03-11 5:00 ` George Gallen
1998-03-11 5:00 ` Phil Farrell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox