System Administration Guide
Chapter 4, Managing printers and print jobs

Print service command summary

Print service command summary

In general, you should use the Printer Manager and Print Job Manager to manage your print service. However, if you need to manage your print service from the command line, refer to these commands:



Table 4-2 Print service commands available to all users

 -----------------------------------------------------
 Command     Description          See also
 -----------------------------------------------------
 cancel(C)   Cancels a request    ``Deleting print
             for a file to be     jobs'' 
             printed

 lp(C)       Sends a file or
             files to a printer

 lpstat(C)   Reports the status   ``Viewing jobs in
             of the print         the print queue'' 
             service

 lprint(C)   Prints from
             printer attached
             to a terminal
The administrator can give users the ability to disable and enable a printer so that if a printer is malfunctioning, the user can turn the printer off without having to call the administrator. (However, in your printing environment, it might not be reasonable to allow regular users to disable a printer.)

You can control whether other users have access to the commands in Table 4-3, ``Privileged print service commands'', by assigning or revoking the printerstat authorization. See ``Secondary authorizations'' for more information about printerstat.



Table 4-3 Privileged print service commands

 ------------------------------------------------------
 Command      Description          See also
 ------------------------------------------------------
 disable(C)   Deactivates the      ``Enabling and
              named printer(s)     disabling printers'' 

 enable(C)    Activates the        ``Enabling and
              named printer(s)     disabling printers'' 
Table 4-4, ``Administrative print service commands'' lists print service commands available only to the administrator. To use the administrative commands, you must either be logged in as root or have the lp authorization. See ``Assigning subsystem authorizations'' for information about setting the lp subsystem authorization.


NOTE: Only root can run lpsched and lpshut. 

The administrative print service commands are located in the /usr/lib directory. If you use these commands frequently, include /usr/lib in your PATH variable. 

Table 4-4 Administrative print service commands

 ---------------------------------------------------------
 Command         Description          See also
 ---------------------------------------------------------
 accept(ADM)     Permits jobs to be   ``Accepting or
                 queued for a         rejecting print
                 specified            jobs'' 
                 destination

 reject(ADM)     Prevents jobs from   ``Accepting or
                 being queued for a   rejecting print
                 specified            jobs'' 
                 destination

 lpadmin(ADM)    Sets up or changes   ``Changing printer
                 printer              names and
                 configurations       connections'' 

 lpfilter(ADM)   Sets up or changes   ``Creating and using
                 filter definitions   printer filters'' 

 lpforms(ADM)    Sets up or changes   ``Creating and using
                 preprinted forms     printer forms'' 
                 (use
                 /usr/lib/lpadmin 
                 to mount a form)

 lpmove(ADM)     Moves output         ``Transferring a job
                 requests from one    to another printer'' 
                 destination to
                 another

 lpsched(ADM)    Starts the print     ``Starting and
                 service              stopping the print
                                      services'' 

 lpshut(ADM)     Stops the print      ``Starting and
                 service              stopping the print
                                      services'' 

 lpusers(ADM)    Sets or changes      ``Setting print
                 the default          queue priorities'' 
                 priority and
                 priority limits
                 the users of the
                 print service can
                 request