Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 1999 16:08:01 +0000
From:      Mark Ovens <marko@uk.radan.com>
To:        "Jeffrey D. LaCoursiere" <lacoursj@jeff.net>
Cc:        questions@freebsd.org
Subject:   Re: printcap
Message-ID:  <36CAE961.501D3BD5@uk.radan.com>
References:  <Pine.BSF.4.01.9902170948100.13853-100000@dudemon.fastlane.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"Jeffrey D. LaCoursiere" wrote:
> 
> I have an HP Officejet that I have been using with FreeBSD for some time.
> It has the annoying property of only being to print 60 lines per page.  I
> am using the following printcap entry:
> 
> squirt|lp|Hp OfficeJet:\
> :lp=/dev/null:pl#60:sf:sd=/var/spool/output/squirt:lf=/var/log/lpd-errs:sh:\
>     :if=/usr/local/bin/textfilter:
> 
> I should explain that it is actually directly connected to a windows 98
> box on my network at home, and /usr/local/bin/textfilter uses samba to
> actually send the print job through (IP address X'ed out to protect the
> innocent):
> 
> dudemon% cat /usr/local/bin/textfilter
> #!/bin/sh
> PATH=/bin:/usr/bin:/usr/local/bin:/usr/local/samba/bin
> echo "
>       " >> /tmp/print.$$
> smbclient '\\LINDA\HPOJ' -P -N  -I XX.XX.XX.XX << EOF > /dev/null 2>&1
> print /tmp/print.$$
> exit
> EOF
> 
> /bin/rm -f /tmp/print.$$
> 
> -----
> 
> Unfortunately it ends up printing 60 lines on the first page, 4 lines on
> the second page, a form feed, and it continues on the third page.  Every
> other page of course only has four lines on it.  I attempted using pl#60
> and sf above, with no effect at all.  Am I missing something here?
> 

Hmm, have you checked the printer properties in Win98?. The pl#60 in
the printcap will add a FF (^L) every 60 lines, but if Win98 is setup
as 64 lines it will send a FF every 64 lines, ergo 2 FF's per page.

I've seen similar problems before sending prints from Unix to Win and
always found the best solution to set Windows to treat the data as
"raw", that way it doesn't do any formatting. It may be necesary to
setup another printer in Win98 (pointing to the same pysical printer
of course) to allow Win apps to print properly.

HTH.

> Thanks,
> 
> Jeff LaCoursiere
> jeff@jeff.net
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://www.users.globalnet.co.uk/~markov
_______________________________________________________________
Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
CAD/CAM solutions for Sheetmetal Working Industry
mailto:marko@uk.radan.com                  http://www.radan.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36CAE961.501D3BD5>