lpsched(8) CLIX lpsched(8)
NAME
lpsched, lpshut, lpmove - Starts/stops LP scheduler and move requests
SYNOPSIS
/usr/lib/lpsched
/usr/lib/lpshut
/usr/lib/lpmove requests dest
/usr/lib/lpmove dest1 dest2
DESCRIPTION
The lpsched command schedules requests taken by the lp(1) command for
printing on line printers (LPs).
Whereas, the lpshut command shuts down the line printer scheduler. All
printers that are printing at the time the lpshut command is invoked will
stop printing. Requests that were printing at the time a printer was
shutdown will be reprinted in their entirety after the lpsched command is
started again.
The lpmove command moves requests that were queued by lp between
destinations. This command may be used only when the lpsched command is
not running.
The first form of the command moves the named requests to the line printer
destination, dest. The requests are request ids as returned by the lp
command. The second form moves all requests for destination dest1 to
destination dest2. As a side effect, the lp command will reject requests
for dest1.
Note that lpmove never checks the acceptance status (see accept) for the
new destination when moving requests.
EXAMPLES
1. To start the line printer scheduler:
lpsched
2. To stop the line printer scheduler:
lpshut
3. To move the print request req1 to the printer ilp811:
2/94 - Intergraph Corporation 1
lpsched(8) CLIX lpsched(8)
lpmove req1 ilp811
4. Will move all requests scheduled for printer ilp811 to the printer
epson80, and also stop scheduling requests for ilp811.
lpmove ilp811 epson80
FILES
/usr/spool/lp/*
DIAGNOSTICS
scheduler not running
An attempt was made to run lpshut when the LP scheduler was already
stopped.
lpsched: Can't open file
One of the files needed to start the LP scheduler is missing.
lpsched: can't set user id to LP Administrator's user id
The user is not an LP administrator, or is not a superuser.
lpmove: scheduler is still running - can't proceed
The lpmove command was executed while the scheduler was still
running. Use lpshut first.
lpmove: destination name nonexistent
The destinations to move requests to does not exist.
lpmove: destinations are identical
An attempt was made to move all of the requests in a destination to
the same destination.
lpmove: name is not a request id
An attempt was made to move a nonexistent request.
EXIT VALUES
The lpsched command will exit with a nonzero value when an error occurs.
RELATED INFORMATION
Commands: accept(8), lpadmin(8), enable(1), lp(1), lpstat(1)
2 Intergraph Corporation - 2/94