[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to reset a printer from debian?



Hi Wojciech,

On Fri, May 28, 1999 at 04:43:57PM +0200, Wojciech Zabolotny wrote:

> Hi all!
> 
> I have a small problem with my server. It serves as a netware printer (with
> mars nwe and HP-DJ670C). Sometimes it happens, that one of users sends
> a print job in the wrong format (e.g. binary data for HP-LJ).

wouldn't it be more practical to write a filter which sends files
in unwanted formats directly to the big bit bucket rather than to the
printer?
By checking the first few characters of the printjob you should be able
to determine the filetype and decide if you want to send it to the
printer or not.  This way you could set up a queue which only accepts 
certain file formats and ignores the rest.
Optionally you could probably add some code to create a message, if a
file was rejected, although this is usually not the filter's job.

So long -- Stephan
-- 
Stephan Engelke                                    engelke@math.uni-hamburg.de
                        *** Spare in der Schweiz, dann hast Du in der Not. ***


Reply to: