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