1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.7"></HEAD
28 >testprns
--
check printer name for validity with smbd
</DIV
30 CLASS=
"REFSYNOPSISDIV"
40 > {printername} [printcapname]
</P
50 >This tool is part of the
<SPAN
61 > is a very simple test program
62 to determine whether a given printer name is valid for use in
63 a service to be provided by
<SPAN
71 >"Valid" in this context means
"can be found in the
72 printcap specified". This program is very stupid - so stupid in
73 fact that it would be wisest to always specify the printcap file
92 >The printer name to validate.
</P
94 >Printer names are taken from the first field in each
95 record in the printcap file, single printer names and sets
96 of aliases separated by vertical bars (
"|") are recognized.
97 Note that no validation or checking of the printcap syntax is
98 done beyond that required to extract the printer name. It may
99 be that the print spooling system is more forgiving or less
107 > finds the printer then
<SPAN
110 CLASS=
"REFENTRYTITLE"
113 > should do so as well.
</P
119 >This is the name of the printcap file within
120 which to search for the given printer name.
</P
122 >If no printcap name is specified
<B
126 > will attempt to scan the printcap file name
127 specified at compile time.
</P
151 >This is usually the default printcap
152 file to scan. See
<TT
169 >If a printer is found to be valid, the message
170 "Printer name <printername> is valid" will be
173 >If a printer is found to be invalid, the message
174 "Printer name <printername> is not valid" will be
177 >All messages that would normally be logged during
178 operation of the Samba daemons are logged by this program to the
182 > in the current directory. The
183 program runs at debuglevel
3, so quite extensive logging
184 information is written. The log should be checked carefully
185 for errors and warnings.
</P
187 >Other messages are self-explanatory.
</P
197 >This man page is correct for version
3.0 of
215 CLASS=
"REFENTRYTITLE"
221 CLASS=
"REFENTRYTITLE"
234 >The original Samba software and related utilities
235 were created by Andrew Tridgell. Samba is now developed
236 by the Samba Team as an Open Source project similar
237 to the way the Linux kernel is developed.
</P
239 >The original Samba man pages were written by Karl Auer.
240 The man page sources were converted to YODL format (another
241 excellent piece of Open Source software, available at
<A
242 HREF=
"ftp://ftp.icce.rug.nl/pub/unix/"
244 > ftp://ftp.icce.rug.nl/pub/unix/
</A
245 >) and updated for the Samba
2.0
246 release by Jeremy Allison. The conversion to DocBook for
247 Samba
2.2 was done by Gerald Carter. The conversion to DocBook XML
4.2
248 for Samba
3.0 was done by Alexander Bokovoy.
</P