Dil ID: 7
Dil Adı: french
Dil Kodu: fr7tayfun Produits de la Marque OKI
Dünyanın En Büyük
Elektronik Bilgi Kütüphanesi



6.3 Printing (SunOS) 29
Delete (lprm)
This “lprm” command is used to delete print data which has been sent to print.
Command Format
/usr/ucb/lprm [-P Printer name] Job number
Command Options
The following command options are available:
-P Printer name
This option specifies the printer name registered with /etc/printcap. If this option is omitted,
the default printer “lp” will be specified.
Job Number
This option specifies the job number of the print data to be deleted. A job number is a serial
number between 1-999 determined by the workstation. These numbers can be checked by
issuing a “lpq” command.
Instead of a job number, you can specify a user name or “-”.
This option is invalid in the non-spool mode.
User name
This option is only valid when the user logs in as a superuser. When this option is executed,
all the print data specified by the user who logged in as superuser will be deleted.
This option is invalid in the non-spool mode.
-
A user can delete all his print data by specifying this option. If this option is issued by a
superuser, all the print data received by the printer can be deleted.
This option is invalid in the non-spool mode.
Precautions
Print data which consists of multiple files sent in one print instruction, cannot be deleted
file by file. All the files will be deleted at one go.
This command will become invalid if it is executed without options having been specified
or if there is no print data which matches the option.
A workstation can only delete print data it has sent. It cannot delete print data sent by
other workstations.
When a command to delete print data is received, the file concerned will be deleted even
if it is in the process of being printed. The outcome of the printing will only consist of the
print data available before the file is deleted.
Sample
To cancel the print data related to the files of printer “fxPS” (Job number: 351), enter the
following command:
%lprm -P P001 351