else
puts("No password entered.");
}
+ else if (!strcmp(argv[1], "ppd") && argc == 3)
+ {
+ /*
+ * ./testcups ppd printer
+ */
+
+ http_status_t http_status; /* Status */
+ char buffer[1024]; /* PPD filename */
+ time_t modtime = 0; /* Last modified */
+
+ if ((http_status = cupsGetPPD3(CUPS_HTTP_DEFAULT, argv[2], &modtime,
+ buffer, sizeof(buffer))) != HTTP_STATUS_OK)
+ printf("Unable to get PPD: %d (%s)\n", (int)http_status,
+ cupsLastErrorString());
+ else
+ puts(buffer);
+ }
else if (!strcmp(argv[1], "print") && argc == 5)
{
/*
- * ./testcups printer file interval
+ * ./testcups print printer file interval
*/
int interval, /* Interval between writes */
puts("");
puts(" ./testcups password");
puts("");
+ puts("Get the PPD file:");
+ puts("");
+ puts(" ./testcups ppd printer");
+ puts("");
puts("Print a file (interval controls delay between buffers in seconds):");
puts("");
puts(" ./testcups print printer file interval");
<h2 class="title"><a name="SEE_ALSO">See Also</a></h2>
<i>smbd(8)</i>, <i>smb.conf(5)</i>,
<a href='http://localhost:631/help'>http://localhost:631/help</a>
-<br>
-<a href='http://www.cups.org/windows/'>http://www.cups.org/windows/</a>
<h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
Copyright 2007-2013 by Apple Inc.