Re: Problem with lpr
IIRC, a utility called unix2dos will do the CR/LF translations.
Christopher Copeland wrote:
>
> Baris,
> This is a common problem with the way printers and OSes send
> intstructions for carrier return (return to left margin) and new-line
> (move down the page one line).
>
> It can be fixed in one of two ways:
> Change a setting on your printer to interpret the unix format rather
> than the DOS format, or instruct the unix server to run a script that
> performs this translation before sending the file to printer. Which one
> you choose depends on a number of things: do you have other non-unix
> hosts using the printer?
>
> This can be solved pretty easily try googling for "staircase effect
> lpd" FreeBSD has a good how-to regarding lpd...
>
> CC
>
> On Thursday, August 22, 2002, at 07:32 , Baris Y. wrote:
>
> > hi,
> >
> > /etc/printcap file is as follows:
> >
> > lp|printer:\
> > :mx#0:\
> > :rp=printer:\
> > :rm=sillibox:\
> > :sd=/var/spool/lpd/remote:\
> > :pw#80:\
> > :sh:
> >
> >
> > and the problem is,
> > when i print a text file, the second line on the page
> > starts at the second row but at the column where the first line's last
> > character was. so for example when i print a file with the following
> > content:
> >
> > this is the first line
> > this is the second one
> > this is the third one
> > this is the forth one
> >
> > the output is like:
> >
> > this is the first line
> > this is the second one
> > this is the third one
> > this
> > is the
> > forth one
Reply to: