<html><head></head><body data-blackberry-caret-color="#00a8df" style="background-color: rgb(255, 255, 255); line-height: initial;"><div id="BB10_response_div" style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">M </div> <div id="response_div_spacer" style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br style="display:initial"></div> <div id="_signaturePlaceholder" style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network.</div> <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td id="_persistentHeaderContainer" colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"> <div id="_persistentHeader" style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;"> <div><b>From: </b>David Lopez</div><div><b>Sent: </b>Saturday, November 23, 2013 17:45</div><div><b>To: </b>Main PLUG discussion list</div><div><b>Reply To: </b>Main PLUG discussion list</div><div><b>Subject: </b>Re: CUPS Interface Script</div></div></td></tr></tbody></table><div id="_persistentHeaderEnd" style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><div dir="ltr">lee<div><br></div><div>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:</div><div><br></div><div><div>LogLevel debug2</div><div>LogDebugHistory 500</div>
<div>MaxLogSize 1m</div><div>MaxClientsPerHost 10</div><div>Listen localhost:631</div></div><div><br></div><div>the attributes must have proper case as per the cups docs: </div><div> web address is: <a href="http://localhost:631/">http://localhost:631/</a></div>
<div><br></div><div>look at /var/logs/cups/error_log</div><div><br></div><div>and look for the line: Loaded configuration file "/etc/cups/cupsd.conf"</div><div><br></div><div>look for any errors after that. i found that several attributes were no longer used so i removed them.</div>
<div><br></div><div>let us know how u solved it.</div><div><br></div><div><br></div><div>david</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Nov 23, 2013 at 4:55 PM, <span dir="ltr"><<a href="mailto:lee@citylightsphx.com" target="_blank">lee@citylightsphx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>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:</p>
<p> </p><p>Script
interface_script:</p><p>#!/bin/bash</p><p>echo "Interface script is running." >>/home/me/debug</p><p>lp -d printer1 $6</p><p>lp -d printer2 $6</p><p>_________________________________</p><p>Create Printer: lpadmin -p twoprint -i interface_script -v /dev/null
-E</p><p> </p><p>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.</p><p><br></p><p>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?<br>
<br>
Lee Cowles<br>
</p><p></p><br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>David López<br>
Software Engineer
</div>
<br><!--end of _originalContent --></div></body></html>