Re: [SLUG] adding a LF to /dev/lp0

From: Paul M Foster (paulf@quillandmouse.com)
Date: Wed Jul 24 2002 - 18:39:11 EDT


On Wed, Jul 24, 2002 at 12:55:39AM -0400, Mario Lombardo wrote:

> Thanks, Joe, but I'd like to bypass lpd if I can (perfect solution if
> not). Lower in my original post is my command line sending the job
> directly--bypassing lpd:
>
> "dumpe2fs /dev/hda1 > /dev/lp0"
>
> I'd like to see if this works via the system with some
> options/switches or some shell parameters. I'd rather not change the
> DIP switches on my printer(last resort).
>

You _can_ write a filter in C or Perl or Python or Awk to do this, and
place it just before /dev/lp0. Sed would be the easiest way to do this,
in my opinion, but I've never been able to get sed to regexp for
characters like 0x0a. But regardless, a filter is the only way to do
what you want without going through lpd.

Paul



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 14:24:09 EDT