Ipq Show Line Printer Queue - Sun Microsystems Sun Workstation 100U System Manager's Manual

Table of Contents

Advertisement

Commands
Line Printer Spooler Manual
jobs. In normal operation Ipd listens for service requests on multiple sockets, one in the UNIX
domain (named "/dev/printer") for local requests, and one in the Internet domain (under the
"printer" service specification) for requests for printer access from
01
machine; see ,ocket(2) and
,erv;ce,(5) for more information on sockets and service specifications, respectively. Lpd spawns
a copy of itself to process the request; the master daemon continues to listen for new requests.
Clients communicate with lpd using a simple transaction oriented protocol. Authentication of
remote clients is done based on the "privilege port" scheme employed by r.hd(8C) and
rcmd(3X). The following table shows the requests understood by lpd. In each request the 6rst
byte indicates the "meaning" of the request, followed by the name of the printer to which it
should be applied. Additional qualifiers may follow, depending on the request.
Request
A
Aprinter\n
.. Bprinter\n
.. Cprinter [users ... ] Uobs ... ]\n
"Dprinter [users ... ] Uobs ... ]\n
"Eprinter person [users ... ] Uobs ... ]\n
Interpretation
check the queue for jobs and print any found
receive and queue a job from another machine
return short list of current queue state
ret urn long list of current queue state
remove jobs from a queue
The
Ipr(l)
command is used by users to enter a print job in a local queue and to notify the local
Ipd
that there are new jobs in the spooling area.
Lpd
either schedules the job to be printed
locally, or in the case of remote printing, attempts to forward the job to the appropriate
machine. If the printer cannot be opened or the destination machine is unreachable, the job will
remain queued until it is possible to complete the work.
2.2. lpq - show line printer queue
The
Ipq(
1) program works recursively backwards displaying the queue of the machine with the
printer and then the queue(s) of the machine(s) that lead to it.
Lpq
has two forms of output; in
the default, short, format it gives a single line of output per queued job; in the long format it
shows the list of files, and their sizes, which comprise a job.
2.3. lprm - remove jobs from a queue
The
Iprm(l)
command deletes jobs from a spooling queue. If necessary,
Iprm
will first kill
01
a
running daemon which is servicing the queue, restarting it after the required files are removed.
When removing jobs destined for a remote printer,
Iprm
acts similarly to
Ipq
except it first
checks locally for jobs to remove and then tries to remove files in queues ol-machine.
2.4. Ipe - line printer control program
The Ipc(8) program is used by the system administrator to control the operation of the line
printer system. For each line printer configured in /etc/printc(Jp, Ipc may be used to:
disable or enable a printer,
disable or enable a printer's spooling queue,
rearrange the order of jobs in a spooling queue,
2
27
July
1983

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sun workstation 150u

Table of Contents