Operating System - HP-UX
1834000 Members
2047 Online
110063 Solutions
New Discussion

Re: Form Feed added to data with lp command

 
Ronecker
New Member

Form Feed added to data with lp command

Hi,

I'm using a big size display device in a factory, to with I send very few data.
(eg : ^D^D^D070037^M)

Unfortunately, using the lp command, a Form Feed is added at the end of the data, and my display device refuses to work properly.

Some other servers running different OS send data to the same display device, with the lpr command, and there is no FF added.

I had a look at the lp man page, it briefly talks about a "raw option" that can be specified, preventing lp to do things like that. But I can't find any information on how to set that option.

The dislay is defined like this :
crw-rw-rw- 1 root sys 170x00000a Aug 25 14:14 /dev/telnet/isx2fw40

thanks for any advice,

regards
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Form Feed added to data with lp command

"lp -oraw" will invoke the raw option.


Pete

Pete
Ronecker
New Member

Re: Form Feed added to data with lp command

the lp -oraw didn't make the display work.

Maybe I've some other problems somewhere, as for example in the /var/spool/lp/interface/ ?

I saw some char are added there too, but I'm not sure when these scripts are used.
Leif Halvarsson_2
Honored Contributor

Re: Form Feed added to data with lp command

Hi,
The scripts in /var/spool/lp/interfaces is created when configuring a printer, they are actually copied from master scripts in the model subdirectory.

You can modify a such interface script at your own needs.
A. Clay Stephenson
Acclaimed Contributor

Re: Form Feed added to data with lp command

Lp itself does not add any characters, FF or otherwise to the output stream. Output device control characters (if any) are added in the /var/spool/lp/interface/your_printer_name
script which does the printing. Look in the interface file and you will probably see where the FF is added.
If it ain't broke, I can fix that.
Ronecker
New Member

Re: Form Feed added to data with lp command

I must add that the display is connected thru an old term-server (Dec-700 or the like).

Is it possible that the way the HP server negociates a tcp connexion to that server influences the data transmitted ?

Using a sniffer we saw that the connexion stays established while two messages are transmitted. This didn't seem to happen from other servers.
(one connexion for every single message)
Ronecker
New Member

Re: Form Feed added to data with lp command

Sorry for the previous post,
tweaking in the scripts did the trick !

thanks.
Ronecker
New Member

Re: Form Feed added to data with lp command

.