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

Re: How to reset a printer from debian?



On Fri, May 28, 1999 at 03:57:32PM +0200, Stephan Engelke wrote:
> 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.
> 

this is just what magic-filter does. If I try to 'lpr binary-file' I get
email back saying an attempt was made to print a binary. 

-- 
   Jim Foltz <aa204@acorn.net> <jfoltz@raex.com>
ACORN techie <http://www.acorn.net>
      AOL/IM Jim Foltz


Reply to: