Linux 版 (精华区)
发信人: tcpip (高级草包), 信区: Linux
标 题: testprns (1)
发信站: 紫 丁 香 (Fri May 5 20:18:01 2000) WWW-POST
------------------------------------------------------------------------------
--
testprns (1)
Samba
23 Oct 1998
NAME
名称
testprns - check printer name for validity with smbd
testprns - 为smbd测试合法的打印机名
SYNOPSIS
语法
testprns printername [printcapname]
DESCRIPTION
描述
This program is part of the Samba suite.
此程序是samba套件的一部分。
testprns is a very simple test program to determine whether a given printer
name is valid for use in a service to be provided by smbd.
testprns是个非常简单的测试程序,用于检查smbd作为服务提供的打印机名是否合法。
"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.
在这里“Valid”的意思就是“在printcap中可以找到该打印机”。实际上总是使用
printcap文件来指定打印机是非常明智的。
OPTIONS
选项
printername
The printer name to validate.
要测试的打印机名。
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
testprns. However, if testprns finds the printer then smbd should do so as
well.
打印机可以从printcap文件的每个记录首字段中获得,字段中用“|” 号来识别单个的打
印机名和别名。注意当测试请求的打印机名时并不确认或检查printcap文件的语法。打印
假脱机系统会比testprns程序更多或更少地放宽printcap文件的语法。但是,如果
testprns找到了打印机的话smbd会作这样的检查。
printcapname
This is the name of the printcap file within which to search for the given
printer name.
此参数指定想要对给出的打印机名进行查找的printcap文件名。
If no printcap name is specified testprns will attempt to scan the printcap
file name specified at compile time.
如果此参数没有指定的话,testprns将尝试对编译时指定的printcap文件名。
FILES
相关文件
/etc/printcap This is usually the default printcap file to scan. See printcap
(5).
/etc/printcap通常是被扫描的默认printcap文件。请参见printcap (5)。
DIAGNOSTICS
诊断
If a printer is found to be valid, the message "Printer name <printername> is
valid" will be displayed.
如果发现检测的打印机合法,则显示“Printer name <printername> is valid”这样的
信息。
If a printer is found to be invalid, the message "Printer name <printername>
is not valid" will be displayed.
如果发现检测的打印机不合法,则显示“Printer name <printername> is not valid”
这样的信息。
All messages that would normally be logged during operation of the Samba
daemons are logged by this program to the file test.log 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.
所有测试结果信息通常情况下会被记录到当前目录下的test.log文件中。程序运行在调试
级3上,所以会记录十分详细的信息。如果有出错或警告的话应该仔细检查这个文件。
Other messages are self-explanatory.
其它信息是不需加以说明的。
SEE ALSO
请参见
printcap (5), smbd (8), smbclient (1)
AUTHOR
作者
The original Samba software and related utilities were created by Andrew
Tridgell samba-bugs@samba.org. Samba is now developed by the Samba Team as an
Open Source project similar to the way the Linux kernel is developed.
samba软件和相关工具最初由Andrew Tridgell samba-bugs@samba.org创建。samba现在由
开发组作为类似Linux内核开发采用的开放源代码计划方式来发展。
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 ftp://ftp.icce.rug.nl/pub/unix/) and updated for the
Samba2.0 release by Jeremy Allison. samba-bugs@samba.org.
samba手册页最初由Karl Auer撰写。它的源码已被转换成YODL(一种极好的开放源代码软
件,可以在ftp://ftp.icce.rug.nl/pub/unix/处获得)格式并已由Jeremy Allison更新到
samba2.0版本。
See samba (7) to find out how to get a full list of contributors and details
on how to submit bug reports, comments etc.
请参见samba (7)查找如何获得一份完整的维护者列表以及如何提交错误报告及注解等等
。
--
"这一千多年没写诗了?"
"写了, 不过只写了两句."
"千年得两句, 一定是万古丽句了. 念来听听."
"好吧, 我现丑了" 太白星清了清嗓子, 浑厚的男中音在天庭响起:
大海啊, 都是水;
骏马啊, 四条腿;
※ 来源:·紫 丁 香 bbs.hit.edu.cn·[FROM: freesrc.hit.edu]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.983毫秒