1832964 Members
2606 Online
110048 Solutions
New Discussion

Print end of spool

 
iranzo
Frequent Advisor

Print end of spool

hello,
my edition print 800pages
i need a printerdriver
to print just 3 last pages.
How can i modify actual driver
to do that ?
Thank's
Bonjour
9 REPLIES 9
harry d brown jr
Honored Contributor

Re: Print end of spool


You can try to use "tail -Xnumberoflines" and pipe that to your printer.

Can you tell us what kind of "edition" the file is? pdf, ascii, ps ....??

live free or die
harry
Live Free or Die
iranzo
Frequent Advisor

Re: Print end of spool

it's HPUX ascii editions
Bonjour
iranzo
Frequent Advisor

Re: Print end of spool

editions are automatic
I need a specific driver who print
just 3last pages of edition
Bonjour
Steve Steel
Honored Contributor

Re: Print end of spool

Hi


How do you print it.

Normally in printerproperties you can
tell from page to page before printing

Otherwise indeed use a script to remove the first n pages

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
harry d brown jr
Honored Contributor

Re: Print end of spool

WHat do you mean by "editions" ??

Do you have a sample path to that file?

live free or die
harry
Live Free or Die
iranzo
Frequent Advisor

Re: Print end of spool

this is what i need :
a script to remove the first n pages
and put this at the end of printer driver.
Bonjour
Steve Steel
Honored Contributor

Re: Print end of spool

Hi


If your page size is 60 lines then

tail +797*60 file|lp

test by

tail +47820 file|more

If you see what you want then replace more by lp command

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
A. Clay Stephenson
Acclaimed Contributor

Re: Print end of spool

This used to be easy in the days of plain text because all you had to do was count lines and/or formfeeds; however, it is very difficult when trying to do this to modern printers (think of PCL - HP Laserjets) because the meaning of a "page" is very unclear.
If it ain't broke, I can fix that.
Steve Steel
Honored Contributor

Re: Print end of spool

Hi


I agree with the comment over complexity

Youu need to use the page selection when you print if possible;


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)