CUPS print to e-mail

Colin McDonald ce.mcdonald at gmail.com
Fri Dec 10 12:51:13 PST 2004


I need to migrate a printer and filter from a RedHat 7.2 system that uses LPRng to a RedHat 9 system that is using CUPS.

The printer outputs printer to a filter that then sends the output via e-mail:

Print conf from LPRng

e-mail
:if=/usr/local/sbin/e-mail-lp-filter
:lp=/dev/null
:lpd_bounce=false
:ml=0
:mx=0
:sd=/var/spool/lpd/email

The filter looks like this


FILE="/tmp"'/bin/date +/%Y%m%d_%H%M%S_email'
eval cat -> $FILE
eval cat $FILE|tr -d '\000\r\f'|/user/sbin/sendmail -t
rm -f $FILE

exit 0

How would I implement this in CUPS.

Thanks ahead of time

Colin







More information about the cups mailing list