Canceling print jobs (cancel), Copying files (cp) – HP NonStop G-Series User Manual

Page 100

Advertising
background image

If your request has already been printed, or if there are no requests in the print queue, the system
responds with the following message:

No spooler jobs are found.

If there are entries in the print queue, the system lists them and indicates which request is currently
being printed. Following is a typical listing of print queue entries (your listing will vary):

Job State Owner Pages Copies Pri/Hold Location Report

253 Print 8,68 13 1 4 #Printer1 qa.cath

256 Ready 2,56 2 2 4 #Printer1 dev.stan

258 Ready 7,34 8 1 4 #Printer1 qa.sue

As shown, the system displays the following for each print queue entry:

Job number

Job state (status)

Owner (ID number)

Job size, in pages

Number of copies

Priority

Destination printer location

Name or title to appear on banner page (Report)

When you print files, the position of the request in the queue as well as its size may help you
estimate when your request may be finished. Generally, the higher the priority number in the queue
and the larger the print request, the more time it will take. If your system has more than one printer,
use the following format to specify which print queue you wish to see:

lpstat -p printername

The -p flag indicates that you wish to specify a print queue. The printername entry is the name
of a particular printer. Use the lpstat -s command to learn the names of all the printers.

Canceling Print Jobs (cancel)

The cancel command deletes job requests that were made by the lp utility.

For example, to delete job number 256 from the print queue, enter the following:

cancel 256

To confirm that the job you wanted to stop has been removed from the print queue, reissue the
lpstat

command for the printer and verify that the job number is no longer in the queue.

Copying Files (cp)

The cp (copy) command copies files either within your current directory or from one directory into
another directory.

The cp command is especially useful in making backup copies of important files. Because the
backup and the original are two distinct files, you can make changes to the original while
maintaining an unchanged copy in the backup file. This is helpful in case something happens to
the original version. Also, if you decide you do not want to save your most recent changes to the
original file, you can begin again with the backup file.

Compare the cp command, which actually copies files, with the ln command (link command),
which creates multiple names for the same file. The subsection

“Linking Files (ln)” (page 108)

explains

the ln command. Refer also to the cp(1) and ln(1) reference pages either online or in the
Open System Services Shell and Utilities Reference Manual.

100 Managing Files

Advertising
This manual is related to the following products: