Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpsched(ADM) — OpenDesktop 1.0.0y

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

enable(C)

lp(C)

lpstat(C)

accept(ADM)

lpadmin(ADM)


     LPSCHED(ADM)                       UNIX System V



     Name
          lpsched, lpshut, lpmove - start/stop the print  service  and
          move requests


     Syntax
          /usr/lib/lpsched
          /usr/lib/lpsched -q integer
          /usr/lib/lpsched -a integer
          /usr/lib/lpsched -p integer
          /usr/lib/lpsched -s integer
          /usr/lib/lpshut
          /usr/lib/lpmove requests dest
          /usr/lib/lpmove dest1 dest2


     Description
          lpsched starts the LP print service; this can be  done  only
          by root or lp.

          lpshut shuts down the print service.  All printers that  are
          printing  at  the time lpshut is invoked will stop printing.
          When lpsched is started again, requests that  were  printing
          at  the  time a printer was shut down will be reprinted from
          the beginning.

          lpmove moves requests that were  queued  by  lp  between  LP
          destinations.  The first form of the command moves the named
          requests to the LP destination dest.  Requests are  request-
          ids  as  returned by lp.  The second form moves all requests
          for destination dest1 to destination  dest2;  lp  will  then
          reject any new requests for dest1.

          Note that when moving  requests,  lpmove  never  checks  the
          acceptance  status (see accept(ADM)) of the new destination.
          Also, the request ID of the moved request is not changed  so
          that  users  can  still  find  their  requests.   The lpmove
          command will not move requests that  have  options  (content
          type,  form  required,  and so on) that cannot be handled by
          the new destination.

          -q integer
               Specify the number of request structures  you  want  to
               allocate.

          -a integer
               Specify the number of  alert  structures  you  want  to
               allocate.  By default, forty empty alert structures are
               allocated in addition to one for each printer  or  form
               on the system.  Structures will always be allocated for
               existing printers and forms.  You can choose,  however,
               to  have  more  or fewer than the forty extra, by using
               the -a option.  For example, if you want only  as  many
               alert structures as you have printers and forms on your
               system, enter the following command: lpsched -a 0.

          -p integer
               Specify the number of print status structures you  want
               to  allocate.   By  default,  twenty-five empty printer
               status structures are allocated in addition to one  for
               each  printer on the system.  Structures will always be
               allocated  for  existing  printers.   You  can  choose,
               however, to have more or fewer than the forty extra, by
               using the -p option.

          -s integer
               Specify the number of slow filters per printer that can
               be run simultaneously.


     Notes
          By default, the directory /usr/spool/lp is used to hold  all
          the files used by the LP print service.  This can be changed
          by setting the  SPOOLDIR  environment  variable  to  another
          directory  before  running  lpsched.   If  you  do this, you
          should populate  the  directory  with  the  same  files  and
          directories  found under /usr/spool/lp; the LP print service
          will not automatically  create  them.   Also,  the  SPOOLDIR
          variable  must  then be set before any of the other LP print
          service commands are run.


     Files
          /usr/spool/lp/*


     See Also
          enable(C), lp(C), lpstat(C), accept(ADM), lpadmin(ADM)


     Authorization
          The behavior of this utility is affected  by  assignment  of
          the  lp  authorization, which is usually reserved for system
          administrators.


     (printed 8/23/89)                                  LPSCHED(ADM)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026