Operating System - HP-UX
1834414 Members
1833 Online
110067 Solutions
New Discussion

Re: avoid page break onlp

 
SILVERSTAR
Frequent Advisor

avoid page break onlp

Hi,

I have a huge file to print using lp command on a virtual printer, it has no carriage return at the end of line.

I do this :

lp -dWV -oraw -onb -otl60 myfile

the file is printed but each 74 lines put a page break.

Which is the option that avoid lp to put a page break ?

thanks
Angelo
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: avoid page break onlp

Because this is a remote (rather than a network in HP-UX speak) printer, your control over the printer is very limited. Many of the -o options for remote printers are actually ignored by the remote host. The first thing that I would check is that there are no ASCII FF's embedded in "myfile".
You may be able to change the configuration of the form length on the local host.

Plan B. Can you set the printer up as a network printer (ie does it speak HP Port 9100 protocol)? If not, can you use an external Jetdirect with a parallel, serial, or USB connection to the printer? You will then have full control over the device.
If it ain't broke, I can fix that.
SILVERSTAR
Frequent Advisor

Re: avoid page break onlp

It is a PC connected via normal network.
On the unix box i set it as as network printer using jetdirect.

It means I should have a full controll but still need to know the right option.

thanks
angelo
A. Clay Stephenson
Acclaimed Contributor

Re: avoid page break onlp

Okay, now I am really confused. Are you running the lp command on your PC (possibly under Microsoft SFU) or are you issueing the lp command on your HP-UX box?

Please post the output of this command:
lpstat -vWV
If it ain't broke, I can fix that.
SILVERSTAR
Frequent Advisor

Re: avoid page break onlp

may be I caused some confusion.
The command:
lp -dWV -oraw -onb -otl60 myfile
is executed on the unix box where the printer I have configured is :
$ lpstat -vWV
device for WV: /dev/null
remote to: webvista_vp on silv-mi-vista

this is spool goes into a windows PC that act as a printer. I mean it listen for incoming spool and put it into a folder, than an application read and open it.
Once it is opened at the line 74 there is a page break, I need to avoid this break or make sure it is not caused by my spool sent by the unix box. I do not know the application on the windosw PC since I do not administrate it.

many thanks
Angelo

A. Clay Stephenson
Acclaimed Contributor

Re: avoid page break onlp

Okay, now I know that you have a REMOTE printer which means that your HP-UX box has very limited control over the output. In fact most of the -o options are ignored by the remote host (PC). Use the -oraw option and examine your input file using vi or xd to see if there are ASCII FF's embedded in your file. If so, then write a filter to remove them but I'll bet that the real problem is a formlength setting for this printer on the Windows box. You mentioned that the printer does have a JetDirect card earlier so the answer is simple. Set this printer up as a Network printer on your HP-UX box and then you will not be printing through the PC. The PC and your HP-UX box can then print to the same physical printer independently.
If it ain't broke, I can fix that.