2 Printers 1 Queue

Posted by Shazburg on Server Fault See other posts from Server Fault or by Shazburg
Published on 2009-06-18T07:50:52Z Indexed on 2010/05/20 4:50 UTC
Read the original article Hit count: 258

Filed under:
|
|

My issue: When an order is processed, the same document needs to be printed on two printers.

My proposed solution: Create a single queue in CUPS with a backend script that spits the job out to the two real printers queues.

My problem: Documentation. Maybe I'm looking at every ring around the bullseye, but I can't find anything that lays out the rules for writing a CUPS backend script.

In the end, I have several questions:

  • Is there already an option to do this in CUPS that I've missed?
  • The line I use to add my queue is "lpadmin -p MultiPass -E -v multipass -P Generic PostScript Printer". But DeviceURI is bad unless I specify a directory like "-v multipass:/tmp". Why is this?
  • For testing, my script does nothing but capture ARGV and write it out to a text file one line per argument. Problem is, I'm getting nothing. Logs show the job as successful, but I'm pretty sure my meager attempt at a backend isn't even being run.

I've tried to keep this question brief, so please ask for more info as I'm sure I've left out the most important part in all this. Honestly, I'm just done chasing my own tail. Thank you for your time.

© Server Fault or respective owner

Related posts about cups

Related posts about printing