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

From: Mario Lombardo (mario@alienscience.com)
Date: Wed Jul 24 2002 - 22:52:34 EDT


Ok, now I know I wasn't crazy. At least someone else thinks this is
possible. I'm not sure my time is worth this, but it's nice to know
it's certainly a possibility w/o the overhead and security risks
involved with a daemon.

Mario

>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:25:10 EDT