DirectNET

Data Center Management Solutions including UPS Systems, Data Center Cooling, KVM over IP & IP Power Strips, Server Racks and Server Rack accessories; KVM Switches and KVM Extenders; Rackmount Monitors and Rackmount Keyboards.


NAVIGATION
Home
Store
INSIDE MAC
Television Shows
Broadcast Shows
Daily News Shows
Special Shows
EVENTS
DAILY TIPS
Design
Mac OS X
Mac OS X UNIX
COMMUNITY
Forums
Surveys
NEWS
Current
Press
Archive
FEATURES
Editorial
Dr. Mac
Reviews
Reader Reports
RESOURCES
FAQ
Documentation
Learning Center
MAN pages
Glossary
Tutorials
Tips
Links

OUR PARTNERS


     lpc [command [argument ...]]


DESCRIPTION

     Lpc is used by the system administrator to control the operation of the
     line printer system.  For each line printer configured in /etc/printcap,
     lpc may be used to:

           o   disable or enable a printer,

           o   disable or enable a printer's spooling queue,

           o   rearrange the order of jobs in a spooling queue,

           o   find the status of printers, and their associated spooling
               queues and printer daemons.

     Without any arguments, lpc will prompt for commands from the standard in-
     put.  If arguments are supplied, lpc interprets the first argument as a
     command and the remaining arguments as parameters to the command.  The
     standard input may be redirected causing lpc to read commands from file.
     Commands may be abbreviated; the following is the list of recognized com-
     mands.

     ? [command ...]
     help [command ...]
             Print a short description of each command specified in the argu-
             ment list, or, if no argument is given, a list of the recognized
             commands.

     abort { all | printer }
             Terminate an active spooling daemon on the local host immediately
             and then disable printing (preventing new daemons from being
             started by lpr)  for the specified printers.

     clean { all | printer }
             Remove any temporary files, data files, and control files that
             cannot be printed (i.e., do not form a complete printer job) from
             the specified printer queue(s) on the local machine.

     disable { all | printer }
             Turn the specified printer queues off.  This prevents new printer
             jobs from being entered into the queue by lpr.

     down { all | printer } message ...
             Turn the specified printer queue off, disable printing and put
             message in the printer status file. The message doesn't need to
             be quoted, the remaining arguments are treated like echo(1).
             This is normally used to take a printer down and let others know
             why lpq(1) will indicate the printer is down and print the status
             message).

     enable { all | printer }
             stuck daemon).

     start { all | printer }
             Enable printing and start a spooling daemon for the listed print-
             ers.

     status { all | printer }
             Display the status of daemons and queues on the local machine.

     stop { all | printer }
             Stop a spooling daemon after the current job completes and dis-
             able printing.

     topq printer [ jobnum ... ] [ user ... ]
             Place the jobs in the order listed at the top of the printer
             queue.

     up { all | printer }
             Enable everything and start a new printer daemon. Undoes the ef-
             fects of down.


FILES

     /etc/printcap       printer description file
     /var/spool/*        spool directories
     /var/spool/*/lock   lock file for queue control


SEE ALSO

     lpd(8),  lpr(1),  lpq(1),  lprm(1),  printcap(5)


DIAGNOSTICS

     ?Ambiguous command
             abbreviation matches more than one command

     ?Invalid command
             no match was found

     ?Privileged command
             you must be a member of group "operator" or root to execute this
             command


HISTORY

     The lpc command appeared in 4.2BSD.

4.2 Berkeley Distribution       April 28, 1995                               2

Copyright © 2000-2008 Inside Mac Media, Inc. All rights reserved.
Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users.
Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc.