Monday 28 May 2007

Network Printing Part 2 - the 'lpr' method

Now that we know how to get the ip address of the printer and how to send files to it, lets examine another way of sending files to the printer. The 'lpr' method.

What is lpr? You might well ask. A full description can be found here and here. Basically 'lpr' is a client printing program which sends files to the server printing program, 'lpd'. An example of how an actual print server is set up can be found at this support site, where they tell staff how to set up their own computers to work with the university printers.

The thing about network printers is that some of them have built in lpd functionality. Meaning that they act like their own lpd server, accepting files sent by the client program, lpr. So to send the file using lpr type (in the command line):

lpr -S [ip address of printer] -P [ip address of printer] [path to your printable file]

and voila! the document prints.

No comments: