=head1	NAME

klpc - Control LPRng print queues

=head1	SYNOPSIS

  klpc [<arguments>]

=head1	DESCRIPTION

The klpc program performs control operations on a LPRng print server.

=head1	COMMANDS

=item	B<klpc start> I<printer>

starts or restarts a print queue.

=item	B<klpc stop> I<printer>

stops a print queue.

=item	B<klpc enable> I<printer>

enables spooling to a print queue.

=item	B<klpc disable> I<printer>

disables spooling to a print queue.

=item	B<klpc abort> I<printer>

kills and unspools the current job on a print queue.

=item	B<klpc kill> I<printer>

restarts a print queue.

=item	B<klpc topq> I<printer> I<job>

moves a job to the top of the queue (makes it the next job to be printed).

=item	B<klpc status> I<printer>

displays status of daemon and print queue.

=item	B<klpc hold> I<printer> I<job(s)>

holds the specified jobs in the queue until they are released
(holding means keeping the job in the queue but not printing it).

=item	B<klpc holdall> I<printer>

holds all jobs in the specified queue.

=item	B<klpc release> I<printer> I<job(s)>

releases the specified job(s).

=item	B<klpc move> I<job(s)> I<printer>

moves the print job(s) to another queue.

=item	B<klpc active> I<printer>

checks a queue response.

=item	B<klpc lpd> I<printer>

print the PID of the lpd daemon serving the specified queue.

=over	6

=back

=head1	OPTIONS

=over	6

=item	B<-H> I<server>

specifies the LPRng host to connect to.

=back

=head1	RETURN VALUE

The program returns exit status code 0 on success, any other value indicates
an error.

=head1	RESTRICTIONS

In contrast to the lpc program from LPRng this clone does not have an
interactive mode. You have to specify the control operations as command
line arguments.

=head1	SEE ALSO

http://dktools.sourceforge.net/yanolc.html

=head1	AUTHOR

Dirk Krause

=head1	COPYRIGHT AND LICENSE

Copyright (c) 2001-2008, Dirk Krause
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above
   copyright notice, this list of conditions and the
   following disclaimer.

 * Redistributions in binary form must reproduce the above
   copyright notice, this list of conditions and the following
   disclaimer in the documentation and/or other materials
   provided with the distribution.

 * Neither the name of the Dirk Krause nor the names of
   contributors may be used to endorse or promote products
   derived from this software without specific prior written
   permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

