From owner-freebsd-questions Tue Sep 21 15:42: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from maui.net (maui.net [207.175.210.2]) by hub.freebsd.org (Postfix) with ESMTP id D317414E95 for ; Tue, 21 Sep 1999 15:42:04 -0700 (PDT) (envelope-from satomaui@maui.net) Received: from maui2 (U1-34.Kahului.Maui.Net [207.175.210.162]) by maui.net (8.8.7/8.8.5) with SMTP id MAA08121 for ; Tue, 21 Sep 1999 12:41:59 -1000 (HST) From: "Sato & Associates, Inc" To: "FreeBSD Questions" Subject: Network Printing Date: Tue, 21 Sep 1999 12:41:57 -1000 Message-ID: <01bf0482$82c6a7e0$2a1951c0@maui2> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dear FreeBSD: I have FreeBSD ver 2.2.6 running dhcpd for my HP JetDirect devices. I created the 'netprint' script as described in chapter 7 of the Handbook. However,I can't seem to pass the necessary control characters to my LaserJet. Also, I get a message from lpq that it's waiting for my printer to come up. How can I fix these problems? Here's the filter I use for the printer: #!/bin/sh exec /usr/libexec/lpr/lpf "$@" | /usr/local/libexec/netprint LaserJet 9100 How do I get escape codes (EcE and Ec&k2G) to my printer? I get the "staircase" output on my networked printers. I was able to get rid of it using simple printf "\033&2kG" on older printers connected to my lpt ports. Please excuse my ignorance on redirection and pipes, I'm fairly new to scripting in various shells. Thanks for your time. Michael P. Shimko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message