Date: Wed, 24 Sep 1997 18:27:52 +0400 (MSD) From: "Alexey V. Naidyonov" <growler@tulatelecom.ru> To: Jose Monteiro <jm@pluriproj.pt> Cc: questions@FreeBSD.ORG Subject: Re: Printing to a Win95 box Message-ID: <Pine.BSF.3.96.970924182313.10881F-100000@main.tulatelecom.ru> In-Reply-To: <342a19f5.78263915@mail.leirianet.pt>
next in thread | previous in thread | raw e-mail | index | archive | help
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 \\\\<w'95 host>\\HPLaserJ -I <file> -U printer -P -W <w'95 host> -c "print /tmp/gsoutput_$$" rm /tmp/remote_print_$$ /tmp/gsoutput_$$ >-------------------------------------- -- Alexey V. Naidyonov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970924182313.10881F-100000>