a29cd0dd8587200eeee68e605e96fb6e1e2c6b4e
[samba.git] / docs / yodldocs / testprns.1.yo
1 mailto(samba-bugs@samba.org) 
2
3 manpage(testprns htmlcommand((1)))(1)(23 Oct 1998)(Samba)(SAMBA)
4
5 label(NAME)
6 manpagename(testprns)(check printer name for validity with smbd )
7
8 label(SYNOPSIS)
9 manpagesynopsis() 
10
11 bf(testprns) link(printername)(printername) [link(printcapname)(printcapname)]
12
13 label(DESCRIPTION)
14 manpagedescription()
15
16 This program is part of the bf(Samba) suite.
17
18 bf(testprns) is a very simple test program to determine whether a
19 given printer name is valid for use in a service to be provided by
20 url(bf(smbd))(smbd.8.html).
21
22 "Valid" in this context means "can be found in the printcap
23 specified". This program is very stupid - so stupid in fact that it
24 would be wisest to always specify the printcap file to use.
25
26 label(OPTIONS)
27 manpageoptions()
28
29 startdit()
30
31 label(printername)
32 dit(bf(printername)) The printer name to validate.
33
34 Printer names are taken from the first field in each record in the
35 printcap file, single printer names and sets of aliases separated by
36 vertical bars ("|") are recognized. Note that no validation or
37 checking of the printcap syntax is done beyond that required to
38 extract the printer name. It may be that the print spooling system is
39 more forgiving or less forgiving than bf(testprns). However, if
40 bf(testprns) finds the printer then url(bf(smbd))(smbd.8.html) should
41 do so as well.
42
43 label(printcapname)
44 dit(bf(printcapname)) This is the name of the printcap file within
45 which to search for the given printer name.
46
47 If no printcap name is specified bf(testprns) will attempt to scan the
48 printcap file name specified at compile time.
49
50 enddit()
51
52 label(FILES)
53 manpagesection(FILES)
54
55 bf(/etc/printcap) This is usually the default printcap file to
56 scan. See bf(printcap (5)).
57
58 label(DIAGNOSTICS)
59 manpagesection(DIAGNOSTICS)
60
61 If a printer is found to be valid, the message "Printer name
62 <printername> is valid" will be displayed.
63
64 If a printer is found to be invalid, the message "Printer name
65 <printername> is not valid" will be displayed.
66
67 All messages that would normally be logged during operation of the
68 url(bf(Samba))(samba.7.html) daemons are logged by this program to the
69 file tt(test.log) in the current directory. The program runs at
70 debuglevel 3, so quite extensive logging information is written. The
71 log should be checked carefully for errors and warnings.
72
73 Other messages are self-explanatory.
74
75 label(SEEALSO)
76 manpageseealso()
77
78 bf(printcap (5)), url(bf(smbd (8)))(smbd.8.html), url(bf(smbclient
79 (1)))(smbclient.1.html)
80
81 label(AUTHOR)
82 manpageauthor()
83
84 The original Samba software and related utilities were created by
85 Andrew Tridgell email(samba-bugs@samba.org). Samba is now developed
86 by the Samba Team as an Open Source project similar to the way the
87 Linux kernel is developed.
88
89 The original Samba man pages were written by Karl Auer. The man page
90 sources were converted to YODL format (another excellent piece of Open
91 Source software, available at
92 url(bf(ftp://ftp.icce.rug.nl/pub/unix/))(ftp://ftp.icce.rug.nl/pub/unix/))
93 and updated for the Samba2.0 release by Jeremy Allison.
94 email(samba-bugs@samba.org).
95
96 See url(bf(samba (7)))(samba.7.html) to find out how to get a full
97 list of contributors and details on how to submit bug reports,
98 comments etc.