syncing tree with SAMBA_3_0
[Samba.git] / docs / htmldocs / testprns.1.html
blob156ec6bfecdce9c4c4813917ea6bef604dac8e05
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>testprns</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.60.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="testprns.1"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p>testprns &#8212; check printer name for validity with smbd</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><tt class="command">testprns</tt> {printername} [printcapname]</p></div></div><div class="refsect1" lang="en"><h2>DESCRIPTION</h2><p>This tool is part of the <a href="Samba.7.html"><span class="citerefentry"><span class="refentrytitle">Samba</span>(7)</span></a> suite.</p><p><b class="command">testprns</b> is a very simple test program
2 to determine whether a given printer name is valid for use in
3 a service to be provided by <a href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a>.</p><p>"Valid" in this context means "can be found in the
4 printcap specified". This program is very stupid - so stupid in
5 fact that it would be wisest to always specify the printcap file
6 to use. </p></div><div class="refsect1" lang="en"><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">printername</span></dt><dd><p>The printer name to validate.</p><p>Printer names are taken from the first field in each
7 record in the printcap file, single printer names and sets
8 of aliases separated by vertical bars ("|") are recognized.
9 Note that no validation or checking of the printcap syntax is
10 done beyond that required to extract the printer name. It may
11 be that the print spooling system is more forgiving or less
12 forgiving than <b class="command">testprns</b>. However, if
13 <b class="command">testprns</b> finds the printer then <a href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a> should do so as well. </p></dd><dt><span class="term">printcapname</span></dt><dd><p>This is the name of the printcap file within
14 which to search for the given printer name. </p><p>If no printcap name is specified <b class="command">testprns
15 </b> will attempt to scan the printcap file name
16 specified at compile time. </p></dd></dl></div></div><div class="refsect1" lang="en"><h2>FILES</h2><div class="variablelist"><dl><dt><span class="term"><tt class="filename">/etc/printcap</tt></span></dt><dd><p>This is usually the default printcap
17 file to scan. See <tt class="filename">printcap (5)</tt>.
18 </p></dd></dl></div></div><div class="refsect1" lang="en"><h2>DIAGNOSTICS</h2><p>If a printer is found to be valid, the message
19 "Printer name &lt;printername&gt; is valid" will be
20 displayed. </p><p>If a printer is found to be invalid, the message
21 "Printer name &lt;printername&gt; is not valid" will be
22 displayed. </p><p>All messages that would normally be logged during
23 operation of the Samba daemons are logged by this program to the
24 file <tt class="filename">test.log</tt> in the current directory. The
25 program runs at debuglevel 3, so quite extensive logging
26 information is written. The log should be checked carefully
27 for errors and warnings. </p><p>Other messages are self-explanatory. </p></div><div class="refsect1" lang="en"><h2>VERSION</h2><p>This man page is correct for version 3.0 of
28 the Samba suite.</p></div><div class="refsect1" lang="en"><h2>SEE ALSO</h2><p><tt class="filename">printcap(5)</tt>,
29 <a href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a>, <a href="smbclient.1.html"><span class="citerefentry"><span class="refentrytitle">smbclient</span>(1)</span></a></p></div><div class="refsect1" lang="en"><h2>AUTHOR</h2><p>The original Samba software and related utilities
30 were created by Andrew Tridgell. Samba is now developed
31 by the Samba Team as an Open Source project similar
32 to the way the Linux kernel is developed.</p><p>The original Samba man pages were written by Karl Auer.
33 The man page sources were converted to YODL format (another
34 excellent piece of Open Source software, available at <ulink url="ftp://ftp.icce.rug.nl/pub/unix/">
35 ftp://ftp.icce.rug.nl/pub/unix/</ulink>) and updated for the Samba 2.0
36 release by Jeremy Allison. The conversion to DocBook for
37 Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2
38 for Samba 3.0 was done by Alexander Bokovoy.</p></div></div></body></html>