LPC(8) BSD System Manager's Manual LPC(8) NNAAMMEE llppcc - line printer control program SSYYNNOOPPSSIISS llppcc [_c_o_m_m_a_n_d [_a_r_g_u_m_e_n_t _._._.]] DDEESSCCRRIIPPTTIIOONN LLppcc is used by the system administrator to control the operation of the line printer system. For each line printer configured in _/_e_t_c_/_p_r_i_n_t_c_a_p, llppcc may be used to: ++oo disable or enable a printer, ++oo disable or enable a printer's spooling queue, ++oo rearrange the order of jobs in a spooling queue, ++oo find the status of printers, and their associated spooling queues and printer dameons. Without any arguments, llppcc will prompt for commands from the standard in- put. If arguments are supplied, llppcc interprets the first argument as a command and the remaining arguments as parameters to the command. The standard input may be redirected causing llppcc to read commands from file. Commands may be abreviated; the following is the list of recognized com- mands. ?? [command ...] hheellpp [command ...] Print a short description of each command specified in the argu- ment list, or, if no arguments are given, a list of the recog- nized commands. aabboorrtt { 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. cclleeaann { 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. ddiissaabbllee { all | printer } Turn the specified printer queues off. This prevents new printer jobs from being entered into the queue by lpr. ddoowwnn { all | printer } message ... Turn the specified printer queue off, disable printing and put _m_e_s_s_a_g_e 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). eennaabbllee { all | printer } Enable spooling on the local queue for the listed printers. This will allow lpr(1) to put new jobs in the spool queue. eexxiitt qquuiitt Exit from lpc. rreessttaarrtt { all | printer } Attempt to start a new printer daemon. This is useful when some abnormal condition causes the daemon to die unexpectedly leaving jobs in the queue. Lpq will report that there is no daemon pre- sent when this condition occurs. If the user is the super-user, try to abort the current daemon first (i.e., kill and restart a stuck daemon). ssttaarrtt { all | printer } Enable printing and start a spooling daemon for the listed print- ers. ssttaattuuss { all | printer } Display the status of daemons and queues on the local machine. ssttoopp { all | printer } Stop a spooling daemon after the current job completes and dis- able printing. ttooppqq printer [ jobnum ... ] [ user ... ] Place the jobs in the order listed at the top of the printer queue. uupp { all | printer } Enable everything and start a new printer daemon. Undoes the ef- fects of ddoowwnn. FFIILLEESS /etc/printcap printer description file /var/spool/* spool directories /var/spool/*/lock lock file for queue control SSEEEE AALLSSOO lpd(8), lpr(1), lpq(1), lprm(1), printcap(5) DDIIAAGGNNOOSSTTIICCSS ??AAmmbbiigguuoouuss ccoommmmaanndd abreviation matches more than one command ??IInnvvaalliidd ccoommmmaanndd no match was found ??PPrriivviilleeggeedd ccoommmmaanndd command can be executed by root only HHIISSTTOORRYY The llppcc command appeared in 4.2BSD. 4.2 Berkeley Distribution June 6, 1993 2