Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print -lines skipped at top of file

Status
Not open for further replies.

ernieah

Programmer
Oct 27, 2002
42
US
(1) -lpr -P<hplj8cp6 <file-name> <enter>

on a &quot;networked&quot; printer, gives me a printout with the &quot;top&quot; 5-6 lines &quot;chopped off&quot; the top (NOT present, that is). The printout starts with the 7th.-line printed at the top of the page, and then continues normally. <file-name> is an ASCII-coded file.

Linux is &quot;Redhat&quot;, v7.? , printer is HP Laser Jet 8000N
========================================
(2) printcap is:

# /etc/printcap
13 #
14 # DO NOT EDIT! MANUAL CHANGES WILL BE LOST!
15 # This file is autogenerated by printconf-backend during lpd init.
16 #
17 # Hand edited changes can be put in /etc/printcap.local, and will be inc luded.
18
19 hplj8cp6: 20 :ml=0: 21 :mx=0: 22 :sd=/var/spool/lpd/hplj8cp6: 23 :af=/var/spool/lpd/hplj8cp6/hplj8cp6.acct: 24 :sh: 25 :rm=hplj8cp6.wwb.noaa.gov: 26 :rp=hplj8cp6: 27 :lpd_bounce=true: 28 :if=/usr/share/printconf/util/mf_wrapper:
29
30 hplj-qa: 31 :ml=0: 32 :mx=0: 33 :sd=/var/spool/lpd/hplj-qa: 34 :af=/var/spool/lpd/hplj-qa/hplj-qa.acct: 35 :sh: 36 :rm=hplj-qa.wwb.noaa.gov: 37 :rp=hplj-qa: 38 :lpd_bounce=true: 39 :if=/usr/share/printconf/util/mf_wrapper:
40
41 ph560: 42 :ml=0: 43 :mx=0: 44 :sd=/var/spool/lpd/ph560: 45 :af=/var/spool/lpd/ph560/ph560.acct: 46 :sh: 47 :rm=ph560.wwb.noaa.gov: 48 :rp=ph560: 49 :lpd_bounce=true: 50 :if=/usr/share/printconf/util/mf_wrapper:
51
52 hpljtxt: 53 :ml=0: 54 :mx=0: 55 :sd=/var/spool/lpd/hpljtxt: 56 :af=/var/spool/lpd/hpljtxt/hpljtxt.acct: 57 :sh: 58 :rm=hplj8cp6.wwb.noaa.gov: 59 :rp=hpljtxt: 60 :lpd_bounce=true: 61 :if=/us
62
63 ############################################################################ ###
64 ## Everything below here is included verbatim from /etc/printcap.local ##
65 ############################################################################ ###
66 # 1st floor printcap file #
67 # #
68 # ## #
69 # # $ #
70 # # #
71 # # #
72 # ##### #
73 ###########################
74 hplj8cp6: 75 :ml=0: 76 :mx=0: 77 :sd=/var/spool/lpd/hplj8cp6: 78 :af=/var/spool/lpd/hplj8cp6/hplj8cp6.acct: 79 :sh: 80 :rm=hplj8cp6: 81 :rp=hplj8cp6: 82 :lpd_bounce=true: 83 :if=/usr/share/printconf/util/mf_wrapper:
84
85 ph560: 86 :ml=0: 87 :mx=0: 88 :sd=/var/spool/lpd/ph560: 89 :af=/var/spool/lpd/ph560/ph560.acct: 90 :sh: 91 :rm=ph560: 92 :rp=ph560: 93 :lpd_bounce=true: 94 :if=/usr/share/printconf/util/mf_wrapper:
95
96 hplj-qa: 97 :ml=0: 98 :mx=0: 99 :sd=/var/spool/lpd/hplj-qa: 100 :af=/var/spool/lpd/hplj-qa/hplj-qa.acct: 101 :sh: 102 :rm=hplj-qa: 103 :rp=hplj-qa: 104 :lpd_bounce=true: 105 :if=/usr/share/printconf/util/mf_wrapper:
106
107
=========================================
(3) The command:

-lpr -Phpljtxt <file-name> <enter>


DOES give me the &quot;proper&quot; printout, without
any skipped-lines at the top. But, why doesn't

[color]&quot;-lpr -Phplj8cp6 <file-name> <enter>&quot;[/color]

do the job (1- above)?
=================================
(4) Also, i can print OK, onto &quot;hplj8cp6&quot; (or any other
printer) from Netscape, without any 'skipped lines&quot;
at the top.
=================================
(5) I suppose I need help from the sys-admin, who
is ALREADY the person who 'setup&quot; the
&quot;hpljtxt&quot;, which WORKS OK, but will the sys-admin.
have 'set that up&quot;, for my, for r EVERY printer I ever want to use?
==========================================
(6) Any suiggestions about how to &quot;correct&quot; this&quot;defect&quot; (1), above, or is this a 'feature&quot; instead of a defect?
========================================
Thanx in advance for any help you can give me with this.




End-of-memo: Best to you..
from ernieah.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top