


_O_n_l_i_n_e _M_a_n_u_a_l             User Commands                   lprm(1)



NNNNAAAAMMMMEEEE
     lprm - remove jobs from the line printer spooling queue

SSSSYYYYNNNNTTTTAAAAXXXX
     llllpppprrrrmmmm [ ----PPPP_p_r_i_n_t_e_r ] [ ---- ] [ job # ...  ] [ user ...  ]

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     _l_p_r_m will remove a job, or jobs, from a printer's spool
     queue.  Since the spooling directory is protected from
     users, using _l_p_r_m is normally the only method by which a
     user may remove a job.

     _l_p_r_m without any arguments will delete the currently active
     job if it is owned by the user who invoked _l_p_r_m.  The
     super-user can remove any job.

     If the ---- flag is specified, _l_p_r_m will remove all jobs which
     a user owns.  If the super-user employs this flag, the spool
     queue will be emptied entirely. The owner is determined by
     the user's login name and host name on the machine where the
     _l_p_r command was invoked.

     Specifying a user's name, or list of user names, will cause
     _l_p_r_m to attempt to remove any jobs queued belonging to that
     user (or users).  This form of invoking _l_p_r_m 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 _l_p_q(1) pro-
     gram, e.g.

          % lpq -l

          1st: ken                          [job #013ucbarpa]
               (standard input)             100 bytes
          % lprm 13

     _l_p_r_m will announce the names of any files it removes and is
     silent if there are no jobs in the queue which match the
     request list.

     _l_p_r_m will kill off an active daemon, if necessary, before
     removing any spooling files.  If a daemon is killed, a new
     one is automatically restarted upon completion of file remo-
     vals.

     The ----PPPP option may be usd 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).

FFFFIIIILLLLEEEESSSS
     /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

SSSSEEEEEEEE AAAALLLLSSSSOOOO
     User Commands (1):  lpr, lpq






     System Manager Commands (8):  lpd

DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
     ``Permission denied" if the user tries to remove files other
     than his own.

KKKKNNNNOOOOWWWWNNNN PPPPRRRROOOOBBBBLLLLEEEEMMMMSSSS
     Since there are race conditions possible in the update of
     the lock file, the currently active job may be incorrectly
     identified.

     On a multi-PU system with a single hostname, you can remove
     a job from a printer queue on a different system only if you
     run _l_p_r_m from the PU whose address matches the hostname.

March 1989                                    TX User's Reference












































