Problems adding printers via a script.
anonymous at easysw.com
Mon Jul 12 07:26:22 PDT 2004
Red Hat Linux V3.0
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?
> Michael Sweet, Easy Software Products mike at easysw dot com
> Printing Software for UNIX http://www.easysw.com
More information about the cups