UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
q to quit, <CR> to continue
LNEXT
ONELCLEAN
HILINE
SYNTAX
SYNTAX:
cancel [request ID(s)] [printer(s)]
The print-request ID is stated by the lpr command
when the job is sent. You can also determine the ID with
the lpstat command. You can cancel a request by
specifying either the ID number or the name of the printer.
In either case, the request that is currently on the printer
will be cancelled, and the next job in the print queue will
be sent to the printer.
GO
You can stop a job that was sent to a printer by using the:
cancel command, whose syntax is shown above.
With cancel, you may cancel either the job already on
the printer or jobs waiting in the print queue.
Prior to stopping a print job you may determine the
job-ID, using the lpstat command, and then issue
the cancel command. NOTE: either the job owner or
a superuser may cancel a print request.
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 of this
request.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type lpstat
Please type lpstat
I will help you this time
$PROMPT$
FORGET1
$PROMPT$lpstat
Observe the result above.
printer-56 root 62996 Aug 18 16:48 on printer
lp2-57 jones 1159 Aug 18 17:36
printer-58 serge 7895 Aug 18 17:36
$PROMPT$
Now issue the appropriate command
to stop the unwanted print job
lp2-57 for the user jones
on the printer lp2.
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type cancel lp2-57
Please type cancel lp2-57
I will help you this time.
$PROMPT$
FORGET2
$PROMPT$cancel lp2-57
Observe the result on the terminal!
$PROMPT$request "lp2-57" cancelled
$PROMPT$
Now please verify that the
job lp2-57 was indeed deleted.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type lpstat.
Please type lpstat.
I will help you this time.
$PROMPT$
FORGET3
$PROMPT$lpstat
Please observe the result above:
printer-56 root 62996 Aug 18 16:48 on printer
printer-58 root 602 Aug 18 17:36
$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!