From owner-freebsd-questions Wed Feb 17 8:11:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (Postfix) with ESMTP id 0B7C211073 for ; Wed, 17 Feb 1999 08:11:35 -0800 (PST) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by post.mail.demon.net with smtp (Exim 2.12 #1) id 10D9ZV-0000dP-00; Wed, 17 Feb 1999 16:11:33 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from beavis.uk.radan.com (beavis [193.114.228.122]) by uk.radan.com (8.6.10/8.6.10) with SMTP id QAA03597; Wed, 17 Feb 1999 16:08:03 GMT Received: from uk.radan.com (gppsun4) by beavis.uk.radan.com (4.1/SMI-4.1) id AA07865; Wed, 17 Feb 99 16:08:03 GMT Message-Id: <36CAE961.501D3BD5@uk.radan.com> Date: Wed, 17 Feb 1999 16:08:01 +0000 From: Mark Ovens Organization: Radan Computational Ltd X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 4.1.3_U1 sun4m) X-Accept-Language: en-GB Mime-Version: 1.0 To: "Jeffrey D. LaCoursiere" Cc: questions@freebsd.org Subject: Re: printcap References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "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