From owner-freebsd-questions Tue Jul 18 15:32:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wilsonandhorton.co.nz (fw2.wilsonandhorton.co.nz [203.99.66.4]) by hub.freebsd.org (Postfix) with ESMTP id AD6D937B57D for ; Tue, 18 Jul 2000 15:32:08 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by wilsonandhorton.co.nz (8.9.3/8.9.3) id KAA07660; Wed, 19 Jul 2000 10:30:45 +1200 (NZST) (envelope-from jonc) Date: Wed, 19 Jul 2000 10:30:45 +1200 From: Jonathan Chen To: Kevin Gross Cc: questions Subject: Re: Printing from FreeBSD to WinNT Message-ID: <20000719103045.A6545@jonc.ntdns.wilsonandhorton.co.n> References: <021101bff0cf$90de7da0$0100a8c0@144> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <021101bff0cf$90de7da0$0100a8c0@144>; from kc144@sprynet.com on Tue, Jul 18, 2000 at 11:48:05AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jul 18, 2000 at 11:48:05AM -0400, Kevin Gross wrote: > Hi all, > > I'm having a bit of a problem getting my FreeBSD 4-stable (as of 7/17/00) > box to print to my WinNT 4.0sp6a machine. I have a fully functional network > and samba set up correctly (in fact, my bsd box acts as a file server for > the win machine). On my NT machine, I have a HP LaserJet 6L working > correctly. On the BSD box, I installed the most recent apsfilter from the > ports along with ghostscript. Just to test my apsfilter setup, I connected > the laserjet to the FreeBSD box and everything works just fine (provided I > change the apsfilter setup to reflect a lpt0 connection). So I am > basically having a problem printing to NT over the network. You're going to have the tweak the if= so that the apsfilter output will be submitted to the NT box, eg something like: #!/bin/sh # # Raw output to a smbprinter # SMBPRINTER=//NTMACHINE/NTPRINTER RAWFILE=/tmp/lpd.$$ cat > $RAWFILE /usr/local/bin/smbclient $SMBPRINTER -U guest -N -c "put $RAWFILE" rm -f $RAWFILE -- Jonathan Chen ---------------------------------------------------------------------- "You can get farther with a kind word and a gun than you can with a kind word alone" - Al Capone To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message