Chapter 26 . Running (Web file server) a Print Server 709

Chapter 26 . Running a Print Server 709 export PRINTER=lp3 To override the default printer, specify a particular printer on the lpr command line. The following example uses the -P option to select a different printer: $ lpr -P canyonps doc1.ps The lpr command has a variety of options that enable lpr to interpret and format several different types of documents. These include -# num, where num is replaced by the number of copies to print (from 1 to 100) and -l (which causes a document to be sent in raw mode, presuming that the document has already been formatted). To learn more options to lpr, type man lpr. Listing Status with lpc Use the lpc command to list the status of your printers. Here is an example: $ lpc status hp: printer is on device parallel speed -1 queuing is enabled printing is disabled no entries daemon present deskjet_5550: printer is on device /dev/null speed -1 queuing is enabled printing is disabled no entries daemon present This output shows two active printers. The first (hp) is connected to your parallel port. The second (deskjet_5550) is a network printer (shown as /dev/null). The hp printer is currently disabled (offline), although the queue is enabled so people can continue to send jobs to the printer. Removing Print Jobs with lprm Users can remove their own print jobs from the queue with the lprm command. Used alone on the command line, lprm removes all the user s print jobs from the default printer. To remove jobs from a specific printer, use the -P option, as follows: $ lprm -P lp0 To remove all print jobs for the current user, type the following: $ lprm -
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply