Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jul 2000 10:30:45 +1200
From:      Jonathan Chen <jonathan.chen@itouch.co.nz>
To:        Kevin Gross <kc144@sprynet.com>
Cc:        questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Printing from FreeBSD to WinNT
Message-ID:  <20000719103045.A6545@jonc.ntdns.wilsonandhorton.co.n>
In-Reply-To: <021101bff0cf$90de7da0$0100a8c0@144>; from kc144@sprynet.com on Tue, Jul 18, 2000 at 11:48:05AM -0400
References:  <021101bff0cf$90de7da0$0100a8c0@144>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonathan.chen@itouch.co.nz>
----------------------------------------------------------------------
          "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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000719103045.A6545>