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