tailieunhanh - Essential System Administration, 3rd Edition phần 8

Sử dụng các lớp có thể được một chút khôn lanh. Ví dụ, nếu bạn thay thế giữa kiểm tra in ấn và đầu ra thường xuyên trên một máy in, bạn có thể không muốn để tắt kiểm tra lớp học sau khi tất cả các kiểm tra được in. Thay vào đó, bạn muốn kiểm tra công việc sẽ được tổ chức cho đến khi giấy thích hợp là một lần nữa ở vị trí trong máy in. | lpc class laser check This will allow only jobs in class check to print all others will be held. To allow any job to print use this command lpc class laser off Using classes can be a bit tricky. For example if you alternate between printing checks and regular output on a printer you probably don t want to turn off class check after all the checks are printed. Rather you want check jobs to be held until the proper paper is again in place in the printer. In this case the following command will be more effective lpc class laser A This sets the allowed class to class A the default so jobs spooled in class check will be held as desired. Configuring LPRng LPRng uses three configuration files stored in etc printcap and which hold queue configuration global spooler configuration and printer access rules respectively. The first of these is a modified version of the standard LPD printcap file. It uses a relaxed syntax all fields use an equal sign to assign values rather than having datatype-specific assignment characters although the form name@ is still used to turn off Boolean flags multiple line entries do not require final backslash characters and no terminal colon is needed to designate field boundaries. Here are two simple entries from printcap hp Example local printer. lp dev lp0 cm HP Laser Jet printer Description for Ipq command. lf var log af var adm pacct filter usr local lib filters ifhp tc .common Include the .common section laser lp painters@matisse Example remote prin ter. tc .common Include the .common section .common sd var spool lpd P mx 0 Named group of items. The first entry is for a local printer named hp on the first parallel port. This printcap entry specifies a description for the printer the name of its log and accounting files and a filter with which to process jobs. The final field tc provides an include feature within printcap entries. It takes a list of names as its argument. In this case the field says to .

TỪ KHÓA LIÊN QUAN