Tony Lawrence typed (on Thu, Jul 17, 2003 at 05:10:16PM +0000):
| Ronald J Marchand <rojomarcovad.net> wrote:
| >In my printer interface script I have the following:
| >until /usr/bin/netgearcheck $PRTHOST $PRTPORT
| > sleep 10
| >If network traffic is really heavy, it occasionally encounters an error.
| >The error is mailed to the user who submitted the print job.
| >What can I do to this line to cause the lp system to ignore this problem and
| >not send the user mail OR redirect the mail to another user.
| If your script always does an "exit 0" then the rest of lp is going
| to assume it was successful..
| What's actually happening here? Is it sleeping so long that lp
| assumes the script fails? Perhaps you can be more creative and
| only check for a short period of time?
| But then again, why wouldn't you want to notify the user of an error?
Starting in OSR 5.0.6, inserting CANCEL_MAIL=NO in /etc/default/lpd
will stop messages about failed printing jobs from being mailed to the