testprns.1.html   [plain text]


<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.64.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"><a name="id2478431"></a><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><span><b class="command">testprns</b></span> is a very simple test program 
	to determine whether a given printer name is valid for use in 
	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 
	printcap specified". This program is very stupid - so stupid in 
	fact that it would be wisest to always specify the printcap file 
	to use. </p></div><div class="refsect1" lang="en"><a name="id2478473"></a><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 
		record in the printcap file, single printer names and sets 
		of aliases separated by vertical bars ("|") are recognized. 
		Note that no validation or checking of the printcap syntax is 
		done beyond that required to extract the printer name. It may
		be that the print spooling system is more forgiving or less 
		forgiving than <span><b class="command">testprns</b></span>. However, if 
		<span><b class="command">testprns</b></span> 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
		which to search for the given printer name. </p><p>If no printcap name is specified <span><b class="command">testprns
		</b></span> will attempt to scan the printcap file name 
		specified at compile time. </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2430023"></a><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 
		file to scan. See <tt class="filename">printcap (5)</tt>. 
		</p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2430054"></a><h2>DIAGNOSTICS</h2><p>If a printer is found to be valid, the message 
	"Printer name &lt;printername&gt; is valid" will be 
	displayed. </p><p>If a printer is found to be invalid, the message
	"Printer name &lt;printername&gt; is not valid" will be 
	displayed. </p><p>All messages that would normally be logged during
	operation of the Samba daemons are logged by this program to the 
	file <tt class="filename">test.log</tt> in the current directory. The
	program runs at debuglevel 3, so quite extensive logging 
	information is written. The log should be checked carefully 
	for errors and warnings. </p><p>Other messages are self-explanatory. </p></div><div class="refsect1" lang="en"><a name="id2430089"></a><h2>VERSION</h2><p>This man page is correct for version 3.0 of 
	the Samba suite.</p></div><div class="refsect1" lang="en"><a name="id2430100"></a><h2>SEE ALSO</h2><p><tt class="filename">printcap(5)</tt>, 
	<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"><a name="id2430129"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities 
	were created by Andrew Tridgell. Samba is now developed
	by the Samba Team as an Open Source project similar 
	to the way the Linux kernel is developed.</p><p>The original Samba man pages were written by Karl Auer. 
	The man page sources were converted to YODL format (another 
	excellent piece of Open Source software, available at <a href="ftp://ftp.icce.rug.nl/pub/unix/" target="_top">
	ftp://ftp.icce.rug.nl/pub/unix/</a>) and updated for the Samba 2.0 
	release by Jeremy Allison.  The conversion to DocBook for 
	Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2
	for Samba 3.0 was done by Alexander Bokovoy.</p></div></div></body></html>