Sat 30 Dec 2006
Print Servers on Redhat Linux 9 As you can see, the application offers you a list of printers to choose from - the list shown above includes an entry for the prntr_queue-1 printer that we configured earlier. It also includes a Generic Printer entry - if you choose this, then the application will send the print job to your “default” printer (the one that your machine is configured to use automatically). You’ll need to configure the “default” printer before you use if for the first time; you can do this through the Openoffice Printer Setup tool. Select Main Menu | Office | Openoffice.org Printer Setup, select the Generic Printer entry in that dialog, and click the Properties button: In the resulting Properties of Generic Printer dialog, the default command in the Select Command section is lpr - this will send printer jobs via the lpr command to /dev/lp0 as the default print queue. Change the command to lpr -P printername, where printername is the name you gave to your printer. Then click OK to save these settings. Now you can return to your OpenWriter application, select File | Print, and select the Generic Printer option in the Print dialog to send the job to that printer. Creating Print Jobs at the Command Line The lpr utility that we’ve just seen can also be used to create print requests from command line. For example, if you want to print a text document called addreses.txt, contained in the present working directory, you can do so by typing the following at the command line: $ lpr addreses.txt We can also examine and control existing print jobs via the lpq and lprm command line utilities of the CUPS software suite. The lpq command allows us to view the contents of the print queue, and can be used as follows: $ lpq ptntr queue-1 is ready and printing Rank Owner Job File(s) Total Size active root 1 testprint.ps 15630 bytes 290
Hint: If you are looking for very good and affordable webspace to host and run your java hosting application check Sandzak.com java web hosting provider