[cups.general] lpadmin Issue need to be fixed

Michael Sweet msweet at apple.com
Fri Mar 16 08:12:17 PDT 2012


What version of CUPS?

What OS/Linux Distribution?

Does "lpinfo -m" list "Generic-PostScript.ppd"?

Do you see any other errors, particularly from cups-driverd, in the error_log file?


On Mar 16, 2012, at 1:14 AM, chandrashekar <chandu.ise at gmail.com> wrote:

> 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);
>  }
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

__________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list