It is currently Tue, 07 Dec 2021 03:00:08 GMT



 
Author Message
 Solaris 2.51 printing via NT lpdsvc, LF->CR/LF conversion

I've got two solaris 2.51 machines which print to a variety of printers via
the Windows NT lpdsvc service.  Postscript and RTL files print fine, but plain
ascii text files exhibit the "staircase effect" due to the absense of carriage
returns in the Unix files.  

On the NT side, I think you should be able to establish printer queues only
for unix print jobs which insert a seperator page containing the printer's (HP
IIIsi) control sequence for doing LF->CR/LF conversion.  Unfortunatly, my
seperator pages just print as plain text - no escape sequence interpretation
seems to take place.  Oh well, I'll just filter the print jobs on the Solaris
side...

Setting up print service via admintool is fast and easy, but it doesn't allow
you to specify printer types or interfaces.  I tried modifying the interface
settings via lpadmin, but then the printer suddenly became "local", and wanted
to spool jobs to a hardware port.  Even if I can make the interface work, I
have no idea which filter to use to accomplish the translation - if it even
exists....

I'm sure this a simple problem to solve, at one end or the other.  Tell me how
you did it!  

Thanks,

Dave
dhoul...@ciesin.colostate.edu



 Wed, 14 Apr 1999 03:00:00 GMT   
 Solaris 2.51 printing via NT lpdsvc, LF->CR/LF conversion

Jolted from an apathetic repose,
  Jean-Marc Francois jem...@telindus.be somewhat hastily theorized:
 >You can change the properties of the printers in Print Manager  but I don't
 >know anymore wich type of print processor you must set.
 >
 >--
 >>
 >> I'm sure this a simple problem to solve, at one end or the other.  Tell
 >me how
 >> you did it!  

        Yes, it's a simple problem. There are any number of ways.

        1) write a filter:

#!/bin/sh
awk '{printf "%s\r\n}' -

chown root.lp ascfilt
chmod 750     ascfilt

put it where the rest of the filters go. I believe solaris uses the
bsdism of the printcap, so add the file ascfilt to the printcap:

whateverlp|yada|yadayada:\
        :if=/path/to/filter/ascfilt:\
        .
        . other neat stuff
        .
        :rm=addr.to.nt.net:\
        :rp=ntprintcommand:\
        :tr=\f:

          ^- Kick out last page.   There cannot be white space after
                                   the escaped newlines. disregard this
                                   advice at your own time to waste.

Or the more pedestrian way:  ascfilter <filename |lpr

--
se...@comp.tamu.edu      |   Armageddon in 5 minutes:
    Steinberger:         | sync 3 times to write buffers
State of the Instrument  |



 Sat, 17 Apr 1999 03:00:00 GMT   
 Solaris 2.51 printing via NT lpdsvc, LF->CR/LF conversion

You can change the properties of the printers in Print Manager  but I don't
know anymore wich type of print processor you must set.

--
Jean-Marc Francois
Telindus
Belgium

David Houlton <dhoul...@ciesin.colostate.edu> wrote in article
<54rkqf$4...@yuma.ACNS.ColoState.EDU>...



 Sat, 17 Apr 1999 03:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. lpr did not convert LF->CR/LF

2. Enabliing "LF->CR/LF".

3. enabling 'LF->CR/LF'

4. minicom lf -> cr+lf

5. sed lf --> cr/lf

6. lp LF->CR/LF ????

7. NFS mount with CR <-> LF conversion

8. How to convert LF to CR/LF ?

9. ioctl and termcap - how to disable lf - cr/lf translation

10. FreeBSD telnet client sending LF instead of CR LF


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software