Problems adding printers via a script.

Anonymous anonymous at easysw.com
Mon Jul 12 07:26:22 PDT 2004


Michael

Red Hat Linux  V3.0
CUPS Versions
    cups-libs-1.1.17-13.3.6
    cups-1.1.17-13.3.6
    gimp-print-cups-4.2.4-5
    cups-devel-1.1.17-13.3.6

Mike

Michael Sweet wrote:
> Anonymous wrote:
> > Hi,
> >
> > I'm trying to write a script which will add a number of printers to
> > new systems.  I've generated a very simple script which runs lpadmin
> > in a loop, each loop adding one printer to the system.
> >
> > When the commands are run manually everything works OK, but as soon
> > as I put them into the loop, a random selection of lpadmin adds fail
> > with random errors.
>
> What OS?
>
> What version of CUPS?
>
> Compiled from source?  Or a binary package?
>
> > I added a "sleep 10" in to the loop and everything works fine, but
> > very slowly (I'm adding 100 printers).
> >
> > Is there a better way of adding pritners to a system than using
> > lpadmin?
>
> Nope.
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com
> Printing Software for UNIX                       http://www.easysw.com





More information about the cups-devel mailing list