This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[kai/samba.git] / docs / manpages / testprns.1
1 .\" This manpage has been automatically generated by docbook2man 
2 .\" from a DocBook document.  This tool can be found at:
3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
4 .\" Please send any bug reports, improvements, comments, patches, 
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "TESTPRNS" "1" "04 March 2003" "" ""
7 .SH NAME
8 testprns \- check printer name for validity with smbd
9 .SH SYNOPSIS
10
11 \fBtestprns\fR \fBprintername\fR [ \fBprintcapname\fR ]
12
13 .SH "DESCRIPTION"
14 .PP
15 This tool is part of the  Samba suite.
16 .PP
17 \fBtestprns\fR is a very simple test program 
18 to determine whether a given printer name is valid for use in 
19 a service to be provided by \fB smbd(8)\fR 
20 .PP
21 "Valid" in this context means "can be found in the 
22 printcap specified". This program is very stupid - so stupid in 
23 fact that it would be wisest to always specify the printcap file 
24 to use. 
25 .SH "OPTIONS"
26 .TP
27 \fBprintername\fR
28 The printer name to validate.
29
30 Printer names are taken from the first field in each 
31 record in the printcap file, single printer names and sets 
32 of aliases separated by vertical bars ("|") are recognized. 
33 Note that no validation or checking of the printcap syntax is 
34 done beyond that required to extract the printer name. It may
35 be that the print spooling system is more forgiving or less 
36 forgiving than \fBtestprns\fR. However, if 
37 \fBtestprns\fR finds the printer then 
38 \fBsmbd\fR should do so as well. 
39 .TP
40 \fBprintcapname\fR
41 This is the name of the printcap file within
42 which to search for the given printer name. 
43
44 If no printcap name is specified \fBtestprns
45 \fR will attempt to scan the printcap file name 
46 specified at compile time. 
47 .SH "FILES"
48 .TP
49 \fB\fI/etc/printcap\fB\fR
50 This is usually the default printcap 
51 file to scan. See \fIprintcap (5)\fR. 
52 .SH "DIAGNOSTICS"
53 .PP
54 If a printer is found to be valid, the message 
55 "Printer name <printername> is valid" will be 
56 displayed. 
57 .PP
58 If a printer is found to be invalid, the message
59 "Printer name <printername> is not valid" will be 
60 displayed. 
61 .PP
62 All messages that would normally be logged during
63 operation of the Samba daemons are logged by this program to the 
64 file \fItest.log\fR in the current directory. The
65 program runs at debuglevel 3, so quite extensive logging 
66 information is written. The log should be checked carefully 
67 for errors and warnings. 
68 .PP
69 Other messages are self-explanatory. 
70 .SH "VERSION"
71 .PP
72 This man page is correct for version 2.2 of 
73 the Samba suite.
74 .SH "SEE ALSO"
75 .PP
76 \fIprintcap(5)\fR, 
77 \fBsmbd(8)\fR 
78 \fBsmbclient(1)\fR
79 .SH "AUTHOR"
80 .PP
81 The original Samba software and related utilities 
82 were created by Andrew Tridgell. Samba is now developed
83 by the Samba Team as an Open Source project similar 
84 to the way the Linux kernel is developed.
85 .PP
86 The original Samba man pages were written by Karl Auer. 
87 The man page sources were converted to YODL format (another 
88 excellent piece of Open Source software, available at
89 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 
90 release by Jeremy Allison.  The conversion to DocBook for 
91 Samba 2.2 was done by Gerald Carter