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