---
name: "lpd_print"
section: "1"
platform: "linux"
package: "pdq"
version: "2.2.1-7"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/lpd_print"
---

# lpd\_print(1)

send a file to a remote lpd print spooler

## 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_status/1.md), [lpd\_cancel(1)](/lpd_cancel/1.md), RFC-1179
