1833766 Members
2399 Online
110063 Solutions
New Discussion

printing a stair

 
Remko Oosenbrug
Contributor

printing a stair

when I use teh command

lp -dprinter /etc/hosts

The hosts file is printed like a stair. Like this:

xxxxxxx
yyyyyyyy
zzzzzz
How can I print normal output?
OH No. It's happening again
5 REPLIES 5
Dirk Kochale
Advisor

Re: printing a stair

Hallo Remko,

is your printer correctly configured?
please use sam to check your configuration

> sam
printers and plotters

HTH dirk
Every problem is easy as long as you know the answer
Stefan Farrelly
Honored Contributor

Re: printing a stair


Hmm, sounds like someone is mucking around with your printer setup. Try printing it in raw mode; lp -o raw -d
and check the printer config file setup in /usr/spool/lp/interface to see if someone has made some changes to it. To be sure remove the printer and add it in again.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Animesh Chakraborty
Honored Contributor

Re: printing a stair

Hi,
Which printer are you using ?
Is it the only hosts file printing like that ?
Have you tried printing the hosts file on another printer ?

Thanks
Animesh
Did you take a backup?
Volker Borowski
Honored Contributor

Re: printing a stair

This looks, like your printer is accessed in raw mode, means it just prints, what it receives (which are only linefeeds in UNIX, but no carrige returns).

You need to set up a modellscript when you set up the printer, the driver the will do what is needed.

If you do not use this printer from DOS/Windows, you can check the printer, if you can hardcode/dip_switch it to do a LF->CR/LF auto conversion. But you will have trouble, if an application with own printer drivers will access the printer, because you might get double linefeeds then.

Hope this helps
Volker
Printaporn_1
Esteemed Contributor

Re: printing a stair

the host file have CR+LF
this is model script of printer not correct.
output like you 'cat' file out to printer.

if it is line printer try use dumb model script.
enjoy any little thing in my life