line printer control program (UNIX)
Syntax:
lpc [command [argument...]]
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. A job is enqueued by lp
and dequeued by the print server (lpsrvr). The job that is
currently being printed is known as the current job.
The print spooler used is that defined by the LPSRVR
environment variable. If LPSRVR is not set,
/qnx/spooler is used.
A command may be specified on the command line; if no commands are
specified, they will be read from standard input.
Brief online help messages are also available:
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.
- 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.
Environment variables:
- LPSRVR
- Use this spool server. (Will use /qnx/spooler if not set.)
See also:
- lp utility (Send files to a printer)
- lpq utility (Display print queue status)
- lprm utility (Remove jobs from printer queue)
- lpsrvr manager (Print server)
- TCP/IP lpr* utilities
- QNX Installation & Configuration