CUPS Interface Script By-Passed
I am trying to set up a CUPS printer that will print a single print
job on two separate printers. I saw a technique online using a CUPS
interface script, but when I set it up it seems the interface script
is being by-passed when I send a job to the printer.
The method I found and am trying to use is to create a printer with
the URI set to /dev/null and define an interface on that same printer
that spawns two new print jobs, one to each of the two printers I want
it to print on. Here is what I have done:
Created interface_script:
#!/bin/bash
echo "Interface script is running." >>/home/me/debug
/usr/bin/lp -d printer1 $6
/usr/bin/lp -d printer2 $6
_________________________________
Created Printer:
lpadmin -p twoprint -i interface_script -v /dev/null -E
The lpadmin copies the interface_script into /etc/cups/interfaces/twoprint
as expected and the permissions on the twoprint script are 755. The CUPS
LogLevel is set to debug2 and I don't see anything that looks to me to be
an obvious problem in /var/log/cups/error_log after I send a print job to
twoprint.
Does anyone have an idea why the twoprint interface script is not getting run?
|