1 .TH TESTPRNS 1 "30 Jan 2001" "testprns 2.2.0-alpha2"
4 testprns \- check printer name for validity with smbd
8 \fBtestprns\fP printername [printcapname]
12 This program is part of the \fBSamba\fP suite\&.
14 \fBtestprns\fP is a very simple test program to determine whether a
15 given printer name is valid for use in a service to be provided by
18 "Valid" in this context means "can be found in the printcap
19 specified"\&. This program is very stupid - so stupid in fact that it
20 would be wisest to always specify the printcap file to use\&.
25 .IP "\fBprintername\fP"
26 The printer name to validate\&.
28 Printer names are taken from the first field in each record in the
29 printcap file, single printer names and sets of aliases separated by
30 vertical bars ("|") are recognized\&. Note that no validation or
31 checking of the printcap syntax is done beyond that required to
32 extract the printer name\&. It may be that the print spooling system is
33 more forgiving or less forgiving than \fBtestprns\fP\&. However, if
34 \fBtestprns\fP finds the printer then \fBsmbd\fP should
37 .IP "\fBprintcapname\fP"
38 This is the name of the printcap file within
39 which to search for the given printer name\&.
41 If no printcap name is specified \fBtestprns\fP will attempt to scan the
42 printcap file name specified at compile time\&.
47 \fB/etc/printcap\fP This is usually the default printcap file to
48 scan\&. See \fBprintcap (5)\fP\&.
52 If a printer is found to be valid, the message "Printer name
53 <printername> is valid" will be displayed\&.
55 If a printer is found to be invalid, the message "Printer name
56 <printername> is not valid" will be displayed\&.
58 All messages that would normally be logged during operation of the
59 \fBSamba\fP daemons are logged by this program to the
60 file \f(CWtest\&.log\fP in the current directory\&. The program runs at
61 debuglevel 3, so quite extensive logging information is written\&. The
62 log should be checked carefully for errors and warnings\&.
64 Other messages are self-explanatory\&.
68 \fBprintcap (5)\fP, \fBsmbd (8)\fP, \fBsmbclient
73 The original Samba software and related utilities were created by
74 Andrew Tridgell samba@samba\&.org\&. Samba is now developed
75 by the Samba Team as an Open Source project similar to the way the
76 Linux kernel is developed\&.
78 The original Samba man pages were written by Karl Auer\&. The man page
79 sources were converted to YODL format (another excellent piece of Open
80 Source software, available at
81 \fBftp://ftp\&.icce\&.rug\&.nl/pub/unix/\fP)
82 and updated for the Samba2\&.0 release by Jeremy Allison\&.
85 See \fBsamba (7)\fP to find out how to get a full
86 list of contributors and details on how to submit bug reports,