[Previous] [Contents] [Next]

lpc

Line printer control program (UNIX)

Syntax:

lpc [command [argument...]]

Options:

See description.

Description:

The lpc utility is a tool to control the print services. There are two sides to the printing process: the enqueuing of jobs and the dequeuing of jobs. Jobs are enqueued by lp and dequeued by the print server (lpsrvr). The lpc utility communicates with the print server to control such things as allowing new jobs to be enqueued, stopping the dequeueing of jobs, reordering jobs in the queue, etc.

The print spooler used is that defined by the LPSRVR environment variable. If LPSRVR is not set, /qnx/spooler is used.

Control commands are specified as additional arguments on the lpc command line. When no commands are specified, they will instead be read from standard input.

Brief online help is available through the help subcommand:

    lpc help [command...]

The help command gives a short description of each command specified. If no command is specified, a list of the available commands is displayed.

Commands

enable {all|printer...}
Allow enqueuing of jobs on the specified printers.
disable {all|printer...}
Prevent enqueuing of jobs on the specified printers.
start {all|printer...}
Allow enqueuing and dequeuing of jobs on the specified printers.
stop {all|printer...}
Prevent enqueuing and dequeuing of jobs on the specified printers.
status {all|printer...}
Display the status of jobs on the specified printers.
abort {all|printer...}
Abort the current print job and disable the dequeuing process on the specified printers.
clean {all|printer...}
Remove all enqueued print jobs from the specified printers.
restart {all|printer...}
Examine the status of the dequeuing process, and, if necessary, restart the process on the specified printers.
topq printer {jobnum...|user...}
Change the order of jobs for the specified printer. The order is left to right and is specified either by job number or user name. Specifying by user name means all jobs owned by that user.
move fromprinter toprinter {all|jobnum...|user...}
Move the specified jobs from fromprinter to toprinter. Move the "current job"+ if no job is specified.
pause {all|printer...}
Stop the dequeuing process on the specified printers. Allow the "current job"+ to complete.
resume {all|printer...}
Start the dequeuing process on the specified printers.
END-OF-FILE or exit or quit
Exit from lpc.

+ The "current job" refers to the job currently being printed.

Environment variables:

LPSRVR
Use this spool server. (Will use /qnx/spooler if not set.)

See also:

lp, lpq, lprm, lpsrvr

TCP/IP lpr* utilities

Installation & Configuration


[Previous] [Contents] [Next]