TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:14821] lpr -> LPRng



>print fine through Samba, however I can get nothing to print to the
>Deskjets now  - the jobs just sit in the Samba spool directory.

>stair step text, and I have to hit the FF button to get a Deskjet job to
>kick out, so I know there is a filter issue here.

try replacing your printfilter with this:

#!/bin/bash          
awk '{print $0"\r"}' 
exit 0               

all this does is CR->CR/LF conversion. 
there's a line of sed code in the RH printfilters that does the same thing;
however, if there isn't a form feed at the end of the page (like a lot of
sloppy programs don't put), the filter will hang on that for some reason.

change it to the above line of awk; and see if that makes a difference.
worked for me, under RH 5.1/samba 1.9.18

thanks once more to Carl Patten and a few others I don't remember, who
helped me through it then! :)

Carl Soderstrom
System Administrator    307 Brighton Ave. 
Minnesota DHIA	        Buffalo, MN	
carls@agritech.com      (612) 682-1091