lpadmin Issue need to be fixed
chandrashekar
chandu.ise at gmail.com
Fri Mar 16 01:14:28 PDT 2012
Hi,
I am working on non-mac os, where in I dont have /dev/fd/ folders for file descriptors except for stdout, stdin, stderror.
I am trying to add printer with existing ppd from /share/cups/model folder. As soon as I enter lpadmin -p <printer> -v http://<ip>:631 -m Generic-PostScript.ppd. I am getting below issue
cups_model: empty print file.
I traversed through the code I saw cups-driverd is writting PPD to temporary output fd, which is taking 16 or 17 value in my pc. which my non-mac os is not recognizing. I have seen similar hurdle in case of foomatic-rip filter where in they are redirecting the output to /dev/fd/3 if not supported then they are directing to %stdout. Why cant cups server redirect the same to %stdout. I am pasting code snippet of schedular/ipp.c. Please let me know if i understood correct, is there any solution for this.
copy_model() Method:
if (!cupsdStartProcess(buffer, argv, envp, -1, temppipe[1], CGIPipes[1],
-1, -1, 0, DefaultProfile, NULL, &temppid))
{
close(tempfd);
unlink(tempfile);
return (-1);
}
More information about the cups
mailing list