UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
LNEXT
ONELCLEAN
HILINE
SYNTAX
SYNTAX:
The lprm command will delete spooled jobs from the queue.
The syntax for lprm is:
lprm [-Pprinter] [ - ] job ID number [login name]
where - requests that all jobs belonging to login name
be removed.
NOTE: Only the owner of a job or a superuser can remove a job from
the queue.
GO
You can stop a job that was sent to a printer by using the
lprm command, whose syntax is shown above.
With lprm, you may cancel either the job currently on
the printer or jobs waiting in the print queue.
Prior to stopping a print job you must determine the job-ID number.
The job ID number is always stated by the lpr command when
the job is sent. You may also determine it by using the lpq
command.
Assume that you sent a file
called wrongfile to the printer
and you wish to cancel the printing
request. Please issue the command
to determine the job-ID number of
this request.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type lpq
Please type lpq
I will help you this time.
$PROMPT$
FORGET1
$PROMPT$lpq
Observe the result above.
Rank Owner Job Files Total Size
1st jones 251 (standard input) 182 bytes
2nd serge 262 (standard input) 398 bytes
3rd jeff 268 (standard input) 889 bytes
$PROMPT$
Now issue the appropriate
command to stop the unwanted
print job 262 issued by
the user serge.
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type lprm 262
Please type lprm 262
I will help you this time.
$PROMPT$
FORGET2
$PROMPT$lprm 262
Observe the result on the terminal!
$PROMPT$262 dequeued
$PROMPT$
Now please verify that the job 262
was indeed removed from the queue.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type lpq
Please type lpq
I will help you this time.
$PROMPT$
FORGET3
$PROMPT$lpq
Please observe the result above:
Rank Owner Job Files Total Size
1st jones 251 (standard input) 182 bytes
2nd jeff 268 (standard input) 889 bytes
$PROMPT$
Please note that with high-speed
printers and short print jobs
you may not have time to stop a
queued job, unless there are several
requests in front of yours!