LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-02-2014, 06:20 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.3 with Cinnamon & KDE
Posts: 1,534
Blog Entries: 3

Rep: Reputation: 103Reputation: 103
seeking HOWTO -- create own CUPS "filter" chain


I have an application that creates foo.bar files. I want to be able to use
Code:
promtp$ lpr {options} foo.bar ... zap.bar 
...
prompt$ myApp | lpr
...
prompt$ myApp >lp
and have my own "filters" interpret the files and move them out to connected printers. Can someone tell me where to find instructions for creating my own chain of "filters" and then installing them into my CUPS server(s)?

I know that I could write a command to format PDF or similar from these files and then send those to the printer. That does not meet my requirements. This will likely become one option in the "filters"
that I create, but I also want pipe and redirect and run my own "filters."

I saw instructions for this years (er, decades?) ago but have not been able to find HOWTO information in the CUPS documents. When using CUPS, each document goes through a series of "filters" -- I think that they are called "filters" -- between the originating print command line and output to the connected printer. Further, I think that the file-type or mime-type drives the decisions about which "filters" are used for each specific file to print.

Please resist the inclination to advise "... change my application to do __something different__ ..." instead of trying to interpret the existing foo.bar files.

Thanks in advance,
~~~ 0;-Dan
 
Old 08-04-2014, 12:49 AM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.3 with Cinnamon & KDE
Posts: 1,534
Blog Entries: 3

Original Poster
Rep: Reputation: 103Reputation: 103
Thank you for the references, ,ichaelk. They seem to be somewhat older than I expected. In addition, they talk about BSD(tm) printing vs. other printing as well as the assertion that CUPS(tm) did not provide 'lpr' support. My edition of CUPS clearly provided a full set of command line utilities for any sort of printing that I could remember to use. {I've worked with AT&T(R) Unix(tm), Digital(R) Ultrix(tm), IBM(R) AIX(tm), Sun(R) Solaris(tm) and SunOS(tm) as well as several Linux(tm) and pre-Linux variants.}

I am aware the "modern CUPS" begins with an assumption {my words} that all printed output is PDF of some sort. There seems to be the implied requirement that all applications that wish to print, create PDF documents before delivering them to the printing queues. Is this a requirement of the CUPS subsystem or merely a convention? If it is a requirement, where do I learn the details about which PDF features and editions and versions are part of the "requirement?"

I'm running Linux Mint-16 KDE and the CUPS that is part of those repositories.

Regards,
~~~ 0;-Dan
 
Old 08-04-2014, 07:48 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,422

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
Your correct the standard print format is pdf but it will convert as required.. The information is old but might provide some insight.
 
Old 08-05-2014, 12:38 PM   #5
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.3 with Cinnamon & KDE
Posts: 1,534
Blog Entries: 3

Original Poster
Rep: Reputation: 103Reputation: 103
Thanks, again, michaelk

In addition to the data-->printer filter chain that I want to create, I also want to enable or create an email notification when the print job completes -- correctly or with error status. Years ago, that feature was a command line option for an end-user print request.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Print to CUPS server fails with "/usr/lib/cups/filter/foomatic-rip failed" Aule Linux - Newbie 6 09-27-2013 10:08 AM
seeking howto "config manage" web development SaintDanBert Linux - Software 2 03-24-2011 05:07 PM
"/usr/lib/cups/filter/foomatic-rip failed" newbiesforever Linux - Hardware 1 12-10-2010 10:37 AM
[SOLVED] cups "/usr/lib/cups/filter/foomatic-rip failed" error wufo Slackware 4 01-31-2010 03:20 PM
seeking HOWTO scan drive for "lost" partitions and file systems SaintDanBert Linux - Software 1 12-13-2009 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration