[cups.general] Looking for a plain text print script

Jerome Alet alet at librelogiciel.com
Fri Mar 18 23:06:38 PST 2005


Hi,

On Fri, Mar 18, 2005 at 11:05:36PM -0500, Lew Pitcher wrote:
> I'm preparing to move a pseudo-printer from lpd to cups, and I 
> need some advice/direction. My existing lpd pseudo-printer accepts a 
> plain-text print stream, massages the data, and writes an email to 
> an address embedded in the print stream. You'll find this facility 
> documented in my Linux Gazette article titled "Linux Line Printing 
> Daemon for Mainframe Application "Print-to-Email" at 
> http://linuxgazette.net/issue77/pitcher.html 
> 
> I need to replicate this functionality under cups.
> 
> So, can someone direct me to a simple explanation of how I can
> a) define a pseudo-printer to cups that
> b) does not write to a real printer, and
> c) accepts plain text input
> 
> It should not have to deal with postscript, either from the source 
> or from CUPS; the source print stream is plain text and the email 
> target should also be plain text - I don't want to email pdf files 
> generated from the plain text. 
> 
> Any advice?

You could try to give a look to :

        http://www.freshmeat.net/projects/cups-mailto/
        
but it does not seem to do exactly what you want since it sends        
the job by email to the user who printed.

or to :

<shameless plug="on">

        http://www.librelogiciel.com/software/Tea4CUPS/action_Presentation
        
which could do what you want in 5 minutes, provided you've got the script
to extract the email address and send the message.

with this tool just define a printer with the following DeviceURI :

        tea4cups://
        
and nothing more, this way it will not send the data to any real printer        
but will gladfully execute any number of commands you may want, giving
them access to the job's datas and informations.

</shameless>

hth

Jerome Alet





More information about the cups mailing list