<p>Let me clarify the problem I am having. When I send a print job to the twoprint printer, the interface script I have defined for that printer is not getting executed. I am trying to figure out why it is not being run when I send jobs to that printer.</p><p>Lee<br />
<br />
---------------------------- Original Message ----------------------------<br />
Subject: Re: CUPS Interface Script<br />
From: "David Lopez" <lopezdavid123@gmail.com><br />
Date: Sat, November 23, 2013 5:45 pm<br />
To: "Main PLUG discussion list" <plug-discuss@lists.phxlinux.org><br />
--------------------------------------------------------------------------<br />
<br />
> lee<br />
><br />
> i have messed with the server script before and to grab and keep errors,<br />
> this is what i placed at the beginning of the script:<br />
><br />
> LogLevel debug2<br />
> LogDebugHistory 500<br />
> MaxLogSize 1m<br />
> MaxClientsPerHost 10<br />
> Listen localhost:631<br />
><br />
> the attributes must have proper case as per the cups docs:<br />
> web address is: http://localhost:631/<br />
><br />
> look at /var/logs/cups/error_log<br />
><br />
> and look for the line: Loaded configuration file "/etc/cups/cupsd.conf"<br />
><br />
> look for any errors after that. i found that several attributes were no<br />
> longer used so i removed them.<br />
><br />
> let us know how u solved it.<br />
><br />
><br />
> david<br />
><br />
><br />
><br />
><br />
><br />
><br />
><br />
><br />
><br />
> On Sat, Nov 23, 2013 at 4:55 PM, <lee@citylightsphx.com> wrote:<br />
><br />
>> I am trying to set up a CUPS printer that will print a single print<br />
>> job on two separate printers. I saw a technique online using a CUPS<br />
>> interface script, but it seems the interface script is being bypassed (the<br />
>> first line in the script uses echo to put some text into a file in my home<br />
>> directory, which is not happening). The method is to create a printer with<br />
>> the URI set to /dev/null and an interface that spawns two new print jobs,<br />
>> one to each of the two printers you want it to print on. Here is what I<br />
>> have done:<br />
>><br />
>><br />
>><br />
>> Script interface_script:<br />
>><br />
>> #!/bin/bash<br />
>><br />
>> echo "Interface script is running." >>/home/me/debug<br />
>><br />
>> lp -d printer1 $6<br />
>><br />
>> lp -d printer2 $6<br />
>><br />
>> _________________________________<br />
>><br />
>> Create Printer: lpadmin -p twoprint -i interface_script -v /dev/null -E<br />
>><br />
>><br />
>><br />
>> The lpadmin copies the interface_script into /etc/cups/interfaces/twoprint<br />
>> as expected and the permissions on the twoprint script are 755. The CUPS<br />
>> LogLevel is set to debug2 and I don't see anything that looks to me to be<br />
>> an obvious problem in /var/log/cups/error_log.<br />
>><br />
>><br />
>> I had this working in the past, but now I am trying to set it up again and<br />
>> can't get it to work. Does anyone have an idea why the interface script is<br />
>> not getting run?<br />
>><br />
>> Lee Cowles<br />
>><br />
>><br />
>><br />
>> ---------------------------------------------------<br />
>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org<br />
>> To subscribe, unsubscribe, or to change your mail settings:<br />
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss<br />
>><br />
><br />
><br />
><br />
> --<br />
> David López<br />
> Software Engineer<br />
> ---------------------------------------------------<br />
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org<br />
> To subscribe, unsubscribe, or to change your mail settings:<br />
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss<br />
<br />
<br />
Lee Cowles<br />
City Lights, Inc.<br />
602-233-2552</p>