Unix Printing

Hi,
The code is generating a file of 180 lines, I can check that with vi, but when I am executing the following command for duplex printing , it is printing 4 pages which include 2 blank pages 2 & 4 (page no).

$ lp -d printer -0 'land,double,lpi=8,length=90' filename

It is expected to print only 2 pages with content in it.
Any help is appreciated in this regard.
Thanks
DSD

Assuming that you are talking about an HP Laserjet printer (PCL), and that the printer is directly connected.

  1. Modify the file /usr/spool/lp/admins/lp/interfaces/printer, so that the data that is sent to the printer is saved.

  2. Examine the saved file and check to see if the escape sequences are in the wrong sequence, this will sometimes cause a form feed. Check the top and bottom margins and the expected lines per page.