O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

lpstat

Synopsis

lpstat [options]

Prints the lp print queue status. With options that take a list argument, omitting the list produces all information for that option. list can be separated by commas or, if enclosed in double quotes, by spaces.

Options

-a [list]

Show whether the list of printer or class names is accepting requests.

-c [list]

Show information about printer classes named in list.

-d

Show the default printer destination.

-E

Force an encrypted connection if supported by the print server.

-h host

Communicate with print server host, localhost by default.

-l

Show a long listing of classes, jobs, or printers when used before -c, -o, or -p, respectively.

-o [list]

Show job queues for printers in list or all printers if list isn't given.

-p [list]

Show the status of printers named in list or all printers if list isn't given.

-r

Show whether the print scheduler is on or off.

-R

Show the job's position in the print queue when used before -o.

-s

Summarize the print status (shows almost everything). Same as -d -c -v.

-t

Show all status information (reports everything). Same as -r -d -c -v -a -p.

-u user

Show request status for user or all users if user isn't given.

-v [list]

Show device associated with each printer named in list or all printers if list isn't given.

-W completed|not-completed

Only show completed or not completed print jobs, as appropriate. Option must appear before the -o option.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required