
A5-8
893-741-B
Printers
Using aprint with an Interface File
When an interface file is used with aprint, that file is almost identical to the standard interface file
for a System V printer except that all output destined for the printer is piped into a single instance
of aprint.
The following set of instructions create and use an interface file with the path name /usr/spool/lp/
annex_printer which was created specifically for a printer called p_annex (Sample System V
Interface File for aprint on page A5-8 provides a sample file).
1
Shut down the lp scheduler (this disables all printers):
# /usr/lib/lpshut
2
Define a new printer using the /usr/lib/lpadmin command:
# lpadmin –pp_annex –v/dev/null –i/usr/spool/lp/\
annex_printer
3
Enable the printer:
# enable p_annex
4
Allow the queue to accept jobs:
# /usr/lib/accept p_annex
5
Restart the lp scheduler:
# /usr/lib/lpsched
6
Test the printer:
# lp –dp_annex /etc/group
Sample System V Interface File for aprint
The following example of an interface file illustrates setting up aprint on a System V host to pipe
the output destined for the printer through a single instance of aprint.
NOTE:
Following is a sample interface file:
| awk '{ printf("%s\r\n",$0) }' | /usr/annex/aprint\
-A5390_08 -L4 -f
Содержание 5390
Страница 28: ...893 741 B Figures xxviii ...
Страница 44: ...893 741 B Preface xliv ...
Страница 45: ......
Страница 48: ......
Страница 60: ...A1 12 893 741 B Introduction to the Model 5390 Server ...
Страница 106: ...A3 18 893 741 B Configuring Ports ...
Страница 142: ...A5 12 893 741 B Printers ...
Страница 152: ...A6 10 893 741 B Modems ...
Страница 168: ...A7 16 893 741 B Serial Line Internet Protocol SLIP ...
Страница 224: ...A9 38 893 741 B Internetwork Packet Exchange IPX Protocol ...
Страница 258: ...A11 12 893 741 B Dial up Networking ...
Страница 289: ...893 741 B A12 31 Internet Protocol IP Routing that are possible ...
Страница 506: ...A15 86 893 741 B Using Model 5390 Security ...
Страница 507: ......
Страница 508: ... Chapter B1 Network Administration Chapter B2 Simple Network Management Protocol SNMP Part B Network Administration ...
Страница 544: ...B1 36 893 741 B Network Administration ...
Страница 574: ...B2 30 893 741 B Simple Network Management Protocol SNMP ...
Страница 575: ......
Страница 606: ...C1 30 893 741 B na Commands ...
Страница 676: ...C2 70 893 741 B Configuration Parameters ...
Страница 772: ...C3 96 893 741 B Using the CLI Commands ...
Страница 794: ...C5 12 893 741 B Network Protocols ...
Страница 795: ......
Страница 796: ... Appendix D1 Software Reference Part D Appendixes ...