How to make cups to automatically redirect prints that have more than 10 pages to specific printer

cupsprintingredirect

I have 2 printers on my cups server.
I want that when the print has more than 10 pages, it would be redirected to a specific printer.

How can I do that?

Best Answer

Never done this but see `man filter'. It describes cups filters. Maybe you could write your own filter that would detect number of pages and send it to specific printer.