Files
tldr/pages.zh/common/cupstestppd.md

19 lines
746 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cupstestppd
> 测试PPD文件是否符合版本4.3的规范。
> 错误代码分别为1、2、3和4错误的CLI参数无法打开文件无法跳过的格式错误和不符合PPD规范。
> 注意:此命令已被弃用。
> 另请参见:`lpadmin`。
> 更多信息:<https://openprinting.github.io/cups/doc/man-cupstestppd.html>。
- 在静默模式下测试一个或多个文件的符合性:
`cupstestppd -q {{path/to/file1.ppd path/to/file2.ppd ...}}`
-`stdin`获取PPD文件显示详细的符合性测试结果
`cupstestppd -v - < {{path/to/file.ppd}}`
- 测试当前目录下的所有PPD文件打印每个不符合的文件的名称
`find . -name \*.ppd \! -execdir cupstestppd -q '{}' \; -print`