Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpsched(ADM) — OpenDesktop 2.0.0a

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

accept(ADM)

enable(C)

lp(C)

lpstat(C)

lpadmin(ADM)


 lpsched(ADM)                    19 June 1992                    lpsched(ADM)


 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.

    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 destina-
    tion 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 desti-
    nation.

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

    -a integer  Specify the number of alert structures you want to allocate.
                By default, 40 empty alert structures are allocated in addi-
                tion to one for each printer or form on the system.  Struc-
                tures will always be allocated for existing printers and
                forms.  You can choose, however, to have more or fewer than
                the 40 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, 25 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 40
                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 SPOOL-
    DIR 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 au-
    tomatically 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

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


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