lp(1) [ultrix man page]
lp(1) General Commands Manual lp(1) Name lp - send requests to an LP line printer Syntax lp [-c] [-d dest] [-n number] [-] [files] Description The command arranges for the named files and associated information (collectively called a request) to be printed by a line printer. If no file names are mentioned, the standard input is assumed. When a file name is designated by a minus sign (-) it stands for the standard input and may be supplied on the command line in conjunction with named files. The order in which files appear is the same order in which they are printed. This command exists for X/OPEN compatibility. Options The following options to may appear in any order and may be intermixed with file names: -c Makes copies of the files to be printed immediately when is invoked. Normally, files are not copied, but are linked whenever possible. If the -c option is not given, then the user should be careful not to remove any of the files before the request has been printed in its entirety. It should also be noted that without the -c option, any changes made to the named files after the request is made but before it is printed are reflected in the printed output. -d dest Chooses dest as the printer that is to do the printing. If dest is a printer, then the request is printed on that specific printer. By default, dest is taken from the environment variable PRINTER if it is set. Otherwise, a default destination, lp, is used. -n number Prints number copies (default of 1) of the output. Files /etc/passwd personal identification /etc/printcap printer capabilities data base /usr/lib/lpd* line printer daemons /usr/spool/* directories used for spooling /usr/spool/*/cf* daemon control files /usr/spool/*/df* data files specified in cf files /usr/spool/*/tf* temporary copies of cf files See Also lpq(1), lpr(1), lprm(1), pr(1), symlink(2), printcap(2), lpc(8), lpd(8) lp(1)
Check Out this Related Man Page
lprm(1) General Commands Manual lprm(1) Name lprm - remove jobs from line printer queue Syntax lprm [-Pprinter] [-] [job #...] [user...] Description The command removes a job, or jobs, from a printer's spool queue. Since the spooling directory is protected from users, using is normally the only method by which a user may remove a job. The command without any arguments deletes the currently active job if it is owned by the user who invoked If the - flag is specified, removes all jobs which a user owns. If the super-user employs this flag, the spool queue is emptied entirely. The owner is determined by the user's login name and host name on the machine where the command was invoked. Specifying a user's name, or list of user names, causes to attempt to remove any jobs queued belonging to that user (or users). This form of invoking is useful only to the super-user. A user may dequeue an individual job by specifying its job number. This number may be obtained from the program. For example, % lpq -l 1st: ken [job #013ucbarpa] (standard input) 100 bytes % lprm 13 The command announces the names of any files it removes and is silent if there are no jobs in the queue which match the request list. The command kills off an active daemon, if necessary, before removing any spooling files. If a daemon is killed, a new one is automati- cally restarted upon completion of file removals. Options - Removes all jobs owned by you only. -P printer Removes jobs from specified printer. It may be used to specify the queue associated with a specific printer (otherwise the default printer, or the value of the PRINTER variable in the environment is used). Restrictions Since there are race conditions possible in the update of the lock file, the currently active job may be incorrectly identified. Diagnostics ``Permission denied" if the user tries to remove files other than his own. Files /etc/printcap printer characteristics file /usr/spool/* spooling directories /usr/spool/*/lock lock file used to obtain the pid of the current daemon and the job number of the currently active job See Also lpq(1), lpr(1), lpd(8) lprm(1)