Re: CUPS Interface Script

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: David Lopez
Date:  
To: Main PLUG discussion list
Subject: Re: CUPS Interface Script
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, <> 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 -
> 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 -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss