From owner-freebsd-questions Wed Sep 24 07:28:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA01335 for questions-outgoing; Wed, 24 Sep 1997 07:28:42 -0700 (PDT) Received: from main.tulatelecom.ru ([195.9.250.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA01329 for ; Wed, 24 Sep 1997 07:28:25 -0700 (PDT) Received: from localhost (growler@localhost) by main.tulatelecom.ru (8.8.5/8.8.5) with SMTP id SAA11853; Wed, 24 Sep 1997 18:27:52 +0400 (MSD) Date: Wed, 24 Sep 1997 18:27:52 +0400 (MSD) From: "Alexey V. Naidyonov" To: Jose Monteiro cc: questions@FreeBSD.ORG Subject: Re: Printing to a Win95 box In-Reply-To: <342a19f5.78263915@mail.leirianet.pt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 24 Sep 1997, Jose Monteiro wrote: > How can I print from FreeBSD to a Win95 box? > Can samba do the job? sure. >----- /etc/printcap ... ps|PostScript|Generic PostScript Printer:\ :lp=/dev/null:sd=/var/spool/lpd/ps:if=/usr/local/libexec/smb-psprint: odd-ps|ps-odd|OddPostScript|Generic Odd Pages PostScript Printer:\ :lp=/dev/null:sd=/var/spool/lpd/ps-odd:if=/usr/local/libexec/smb-psprint-odd: even-ps|ps-even|EvenPostScript|Generic Even Pages PostScript Printer:\ :lp=/dev/null:sd=/var/spool/lpd/ps-even:if=/usr/local/libexec/smb-psprint-even: ... >----------------------- >--------- /usr/local/libexec/smb-psprint #!/bin/sh export PATH=$PATH:/usr/local/bin cat > /tmp/remote_print_$$ gs -sDEVICE=ljetplus -sPAPERSIZE=a4 -r300x300 -sOutputFile=/tmp/gsoutput_$$ -dBATCH -dNOPAUSE /tmp/remote_print_$$ smbclient \\\\\\HPLaserJ -I -U printer -P -W -c "print /tmp/gsoutput_$$" rm /tmp/remote_print_$$ /tmp/gsoutput_$$ >-------------------------------------- -- Alexey V. Naidyonov