<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 4, 2010, at 1:45 PM, Paul Newall wrote:</div><blockquote type="cite"><div><blockquote type="cite"><font class="Apple-style-span" color="#000000">...</font></blockquote>Thank you, That was the roughly kind of thing I was trying. My filter code is like this<br>fp is a FILE pointer to stdout<br><br><span class="Apple-tab-span" style="white-space:pre">   </span>fprintf(fp, "LockPrinter?");<br><span class="Apple-tab-span" style="white-space:pre">    </span>fflush(fp);<br><br>Then I do the cupsSideChannelDoRequest call and get CUPS_SC_STATUS_OK<br><br>But fflush(fp); is not causing the packet to be sent to the printer. I still get a large packet, starting with "LockPrinter?" followed by all my subsequent print data.<br><br>My filter, written in c, is set up in a pipeline following ghostscript by a script (maybe that's relevant?)<br></div></blockquote></div><div><br></div>Possibly.  However, it might be more relevant to know which backend you are using...<div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>___________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>