[cups.general] bulk/batch printing using CUPS
Bernd Krumböck
b.krumboeck at rewe-group.at
Fri Dec 8 02:52:40 PST 2006
Hi Jerome!
If lp doesn't accept so many arguments then it will be a better idea to use
"xargs" or "find".
At least it will be more robust, when one of the postscript files is
corrupt. Also "cat *.ps" depends on the command line buffer limit.
Following command can workaround this limit:
find . -maxdepth 1 -name "*.ps" -exec lp -dprinter {} \;
(Sadly maxdepth is only supported by GNU find)
If lp itself has a limit (but I don't think) then xargs can be used to split
up the arguments:
ls *.ps | xargs -n 10 lp
best regards!
Bernd
More information about the cups
mailing list