Operating System - HP-UX
1824974 Members
4374 Online
109678 Solutions
New Discussion

Number of Line to Print and jumps of it paginates

 

Number of Line to Print and jumps of it paginates

Hi,

As I can control the number of you line to print and the jumps of it paginates through the operating system one. The printers are connected via RS-232 serial interface.

Thank you
Orlando Oliveira
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: Number of Line to Print and jumps of it paginates

If I understand your question, the answer is no. You cannot determine the page length and top margins and bottom margins at the operating system level. You could customize the /var/spool/lp/interface file to count lines but that has very little meaning for modern printers. If this is a text-only printer then you might be able to modify the interface file but even then that is not the correct approach.

In UNIX, the output is the sole responsibilty of the program generating it. The place to "fix" this is the application itself. You could also pipe the output of your application through a filter such as awk or Perl to acieve your goal as well.

If it ain't broke, I can fix that.