version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
TESTPRNS |
|
|
2 |
!!!TESTPRNS |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
FILES |
|
|
8 |
DIAGNOSTICS |
|
|
9 |
VERSION |
|
|
10 |
SEE ALSO |
|
|
11 |
AUTHOR |
|
|
12 |
---- |
|
|
13 |
!!NAME |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
testprns - check printer name for validity with smbd |
|
|
17 |
!!SYNOPSIS |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
__testprns printername__ [[ __printcapname__ |
|
|
21 |
] |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
This tool is part of the Sambasuite. |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
__testprns__ is a very simple test program to determine |
|
|
29 |
whether a given printer name is valid for use in a service |
|
|
30 |
to be provided by __smbd(8)__. |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
!!OPTIONS |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
__printername__ |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
The printer name to validate. |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
Printer names are taken from the first field in each record |
|
|
43 |
in the printcap file, single printer names and sets of |
|
|
44 |
aliases separated by vertical bars ( |
|
|
45 |
testprns__. |
|
|
46 |
However, if __testprns__ finds the printer then |
|
|
47 |
__smbd__ should do so as well. |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
__printcapname__ |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
This is the name of the printcap file within which to search |
|
|
54 |
for the given printer name. |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
If no printcap name is specified __testprns__ will |
|
|
58 |
attempt to scan the printcap file name specified at compile |
|
|
59 |
time. |
|
|
60 |
!!FILES |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
''/etc/printcap'' |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
This is usually the default printcap file to scan. See |
|
|
67 |
''printcap (5)''. |
|
|
68 |
!!DIAGNOSTICS |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
If a printer is found to be valid, the message |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
If a printer is found to be invalid, the message |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
All messages that would normally be logged during operation |
|
|
78 |
of the Samba daemons are logged by this program to the file |
|
|
79 |
''test.log'' in the current directory. The program runs |
|
|
80 |
at debuglevel 3, so quite extensive logging information is |
|
|
81 |
written. The log should be checked carefully for errors and |
|
|
82 |
warnings. |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
Other messages are self-explanatory. |
|
|
86 |
!!VERSION |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
This man page is correct for version 2.2 of the Samba |
|
|
90 |
suite. |
|
|
91 |
!!SEE ALSO |
|
|
92 |
|
|
|
93 |
|
|
|
94 |
''printcap(5)'', __smbd(8)__, |
|
|
95 |
__smbclient(1)__ |
|
|
96 |
!!AUTHOR |
|
|
97 |
|
|
|
98 |
|
|
|
99 |
The original Samba software and related utilities were |
|
|
100 |
created by Andrew Tridgell. Samba is now developed by the |
|
|
101 |
Samba Team as an Open Source project similar to the way the |
|
|
102 |
Linux kernel is developed. |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
The original Samba man pages were written by Karl Auer. The |
|
|
106 |
man page sources were converted to YODL format (another |
|
|
107 |
excellent piece of Open Source software, available at |
|
|
108 |
ftp://ftp.icce.rug.nl/pub/unix/ |
|
|
109 |
---- |