lpd_print

Langue: en

Version: 57776 (mandriva - 22/10/07)

Section: 1 (Commandes utilisateur)

NAME

lpd_print - send a file to a remote lpd print spooler

SYNOPSIS

lpd_print [-f file] [-j id_num] [-v] [-n] queue@host | host [queue]

DESCRIPTION

lpd_print sends data to the BSD line printer daemon at host. The job is spooled to queue, or lp if not specified. The job id given to the remote host is id_num, or 1 if not specified. If file is not specified, lpd_print sends data from STDIN. No banner page will be printed.

To be compliant with RFC-1179, this program must run SUID root, so that a privileged outbound port may be used. However, many lpd servers found on networked printers do not enforce this requirement.

OPTIONS

-f file
Send data from file instead of STDIN.
-j job_id
Set the job id to be job_id. This should be a three digit number from 001 to 999. Default is 001.
-v
Print warnings and fatal errors.
-vv
Print warnings, fatal errors, and informative messages.
-vvv
Print everything (debug level).
-n
Select the "nasty" cancel model. If a SIGTERM is received and job data is being sent, close the socket immediately. This may cause confusion and timeout problems on the remote server.

SIGNALS

Upon receipt of SIGTERM, lpd_print will send the remote server an abort command, if possible. If data is already being sent, the data will finish sending and an abort command will be sent, unless the -n option is chosen, in which case the socket will close immediately.

BUGS

The timeout value for the connect is not adjustable. Many details of the control file cannot be specified.

AUTHOR

Jacob A. Langford <langford@uiuc.edu>

SEE ALSO

lpd_status(1), lpd_cancel(1), RFC-1179