Lots of pdf files

Ralf Muschall ralf at tecont.de
Thu Jul 21 05:01:02 EDT 2005


Greg Lindstrom wrote:
> Hello-
> I'm running Python 2.3 on a Linux system and have lots (about 2000)
> files in pdf format to print each day.  If I just wind up and fire all
> the files at the printer at once (as 2000 separate print jobs), the
> print server throws a fit and our system admin comes down and slaps me
> around for a few minutes (which, I guess, is fair).

Are your sure it is the number (and not the sum of the sizes) of
the jobs your admin is worrying about?

What about

#!/bin/sh
for i in *.pdf; do
  lpr $i
  sleep 10
done

(maybe adding something that waits until the queue is empty instead
of sleep)?

Ralf



More information about the Python-list mailing list