lpq


lpq

Displays the status of a print queue on a TCP/IP print server running LPD.

Syntax

 lpq -S   servername   -P   printername   [-l] 

Options

-S servername

The name or IP address of the LPD print server

-P printername

The name of the print queue on the server

-l

Verbose output

Examples

Display status of print queue for the network printer BROTHER on TEST :

  lpq -S 172.16.11.104 -P brother  Windows LPD Server   Printer \172.16.11.104\brother     Owner Status Jobname Job-Id Size Pages Priority ------------------------------------------------------ Administrator Printing Test Page 513 103793 0 0 

Notes

lpq can query non-LPD print servers as well (for example, Microsoft Windows print servers). You can't use lpq to send jobs to these print servers, however.

You can query the TCP/IP print queue on the local machine by typing:

  lpq -S localhost -P printername  

See Also

lpr , Printing



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net