Re: CUPS redirecting



Paul W. Elsinghorst wrote:
Hi guys,


does someone know if there is a way to redirect pages to another printer
depending on color content?

So, lets say we have a color and a bw-printer. Some people tend to print
non-colored (bw) stuff on the color printer which finally runs out of
contrast toner. Could I somehow tell CUPS to filter print jobs for
colored content and redirect bw-pages to the bw-printer?


Paul

Probably not at the CUPS level, but I have indeed written filters to do things like that.

What you need to do is make a new queue and specify some basic script stub as a filter..it used to be that a filter was something that got the print stream and spa it to stdout..now it doesn't have to do that..it can dump it in a file, call (exec) another print q and exit with 'done'

Of course the user level monitoring of print queues gets a tad messy..

Finding the filter that CUPS or LPADMIN installs is a game in itself.

Another way would be to ceate a newlp() command, and use that to do the vectoring.


Its good fun programming.
.



Relevant Pages

  • Re: TO PAUL IBISON
    ... Sorry to peek in, but as Paul mentioned, your problem seems to be filter ... > and it would fall into the criteria to replicate to my test machine. ... >> Paul Ibison SQL Server MVP, ...
    (microsoft.public.sqlserver.replication)
  • RE: Redirect script no longer works after SP1
    ... Thank you for posting to the SBS Newsgroup. ... I understand that you want to redirect ... Interface Filter to achieve this function. ...
    (microsoft.public.windows.server.sbs)
  • Re: How can we know if a HttpServletResponse has been redirected ?
    ... Filter then only previous filters in the filter chain will have had an opportunity to redirect the response before your filter sees it, and any filter that does so is poorly designed indeed if it passes the request/response pair on down the chain afterward. ... More generally, there is no good way to determine whether a plain ServletResponse or HttpServletResponse has been previously redirected, but if you anticipate the need in advance then you can wrap the response it in a custom wrapper that will record or block such events. ...
    (comp.lang.java.programmer)
  • RE: changing hyperlinks within item templates at runtime
    ... Paul, there are a couple ways to go, but here's one: return the string for your "return page" from a public function of the page class, then use something like... ... want to redirect them back from ... where they came (passing the stockitemID). ... I'm using a datagrid to display the items that fit the search criteria. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Get variable from UI
    ... Thanks for your advice Paul. ... and with the encryption cipher option to be passed ... When you say send a message to the filter, ... to the registry and then, if dynamic changes are required, send a ...
    (microsoft.public.windowsce.platbuilder)