From owner-freebsd-questions Tue Nov 5 17:36:23 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA07851 for questions-outgoing; Tue, 5 Nov 1996 17:36:23 -0800 (PST) Received: from onramp.i95.net (root@onramp.i95.net [205.177.132.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA07846 for ; Tue, 5 Nov 1996 17:36:19 -0800 (PST) Received: from flame (ppp231.bcpl.lib.md.us [207.19.142.245]) by onramp.i95.net (8.8.Beta.5/8.8) with SMTP id UAA08126 for ; Tue, 5 Nov 1996 20:36:05 -0500 (EST) Message-Id: <199611060136.UAA08126@onramp.i95.net> Comments: Authenticated sender is From: "Anil John" Organization: CyberForge Group To: questions@freebsd.org Date: Tue, 5 Nov 1996 20:35:58 +0000 Subject: Printing from FreeBSD to Win95 Printer using Samba Reply-to: ajohn@cyberforge.com Priority: normal X-mailer: Pegasus Mail for Win32 (v2.42a) Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Greetings, I have a Win95 machine(flame) connected to a FreeBSD box(hammer) by Ethernet. A Cannon BJC4000 inkjet is connected to the Win95 machine(flame). I am trying to print from the Unix Box to the inkjet. When I try to print using the command lpr -P cannon , nothing happens. printer is available as a 'share'. I confirmed that using smbclient on my freebsd box. The filter file 'printc' has been made executable. The rest of my configuration files are given below. Any help to troubleshoot this would be appreciated... Anil My /etc/printcap: cannon|remote printer|lp:\ :lp=/dev/null:\ :sd=/var/spool/output/cannon:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/samba/bin/printc: My /usr/local/samba/bin/printc: !/bin/sh # Print from Unix on a printer on SMB network. An assumption is that #'printer' was posted as a passwordless "share" # client="flame" # client name here... pshare="cannon" # and here printer share name printfile="/tmp/smbspool.$$" cat > $printfile if [ -s $printfile ] ; then ( echo "translate" ; echo "print $printfile" ; echo "quit" ) \ | smbclient \\\\$client\\$pshare -P -N fi rm -f $printfile exit 0 ___________________________________________________________ CyberForge Group LLC * Internet Consulting E-Mail: ajohn@cyberforge.com * WWW Publishing 410-597-8139 * LAN & WAN Integration URL: http://www.cyberforge.com