Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > L

lpsched(1M)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

lpsched, lpshut, lpmove, lpfence — start the LP request scheduler; stop the LP request scheduler; move requests between LP destinations; define the minimum priority for printing

SYNOPSIS

/usr/sbin/lpsched [-v] [-a]

/usr/sbin/lpshut

/usr/sbin/lpmove requests dest

/usr/sbin/lpmove dest1 dest2

/usr/sbin/lpfence printer fence

DESCRIPTION

lpsched

Schedules requests taken by lp for printing on printers. lpsched is typically invoked in /sbin/rc. This creates a process which runs in the background until lpshut is executed. The activity of the process is recorded in /var/adm/lp/log.

lpsched recognizes the following options:

-v

Write a verbose record of the lpsched process on /var/adm/lp/log.

-a

Write lpana logging data on /var/adm/lp/lpana.log.

lpshut

Shuts down the printer scheduler. All printers that are printing at the time lpshut is invoked stop printing. Requests that were printing at the time the scheduler was shut down are reprinted in their entirety after lpsched is started again. All LP commands perform their functions even when lpsched is not running.

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 requests that are currently printing will not be moved.

The second form of the command moves all requests for destination dest1, including requests that are currently printing, to destination dest2. As a side effect, dest1 rejects all subsequent requests.

Note that lpmove never checks the acceptance status (see accept(1M)) for the new destination when moving requests.

lpfence

Defines the minimum required priority for the spooled file to be printed. fence must be in between 0 (lowest fence) and 7 (highest fence). Each printer has its own fence, which is initialized to 0 when it is configured by the lpadmin command.

EXTERNAL INFLUENCES

Environment Variables

LC_TIME determines the format and contents of date and time strings.

LANG determines the language in which messages are displayed.

If LC_TIME is not specified in the environment or is set to the empty string, the value of LANG is used as a default for each unspecified or empty variable. If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting, the commands behave as if all internationalization variables are set to "C". See environ(5).

EXAMPLES

lpmove laserjet1-1 classlaserjet-30 laserjet3

  • Move requests laserjet1-1 and classlaserjet-30 from destination queues laserjet1 and classlaserjet to the destination queue laserjet3 if the requests are not currently printing.

lpmove laserjet1 laserjet2

  • Move all requests from the destination queue laserjet1 to the destination queue laserjet2. This will also cause laserjet1 to reject all subsequent print requests to it. All currently printing requests from laserjet1 will be reprinted on laserjet2.

lpfence laserjet1 5

  • Suppose laserjet1 is a member of classes classlaserjet1 and classlaserjet2. Running this command will cause only print requests of priority 5 and above from queues classlaserjet1, classlaserjet2, and laserjet1 to be printed on printer laserjet1. Print requests of priority 4 and below will not be picked by the scheduler for printing on laserjet1.

WARNINGS

lpsched, lpshut, lpmove, and lpfence perform their operation on the local system only.

FILES

/var/spool/lp/* /var/adm/lp/* /etc/lp/* /usr/lib/lp/*

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.