From owner-freebsd-questions Wed Nov 6 01:08:44 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA03789 for questions-outgoing; Wed, 6 Nov 1996 01:08:44 -0800 (PST) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.225.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA03770 for ; Wed, 6 Nov 1996 01:08:32 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id KAA11769; Wed, 6 Nov 1996 10:09:01 +0100 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id KAA07723; Wed, 6 Nov 1996 10:18:45 +0100 From: Christoph Kukulies Message-Id: <199611060918.KAA07723@gilberto.physik.rwth-aachen.de> Subject: Re: Printing from FreeBSD to Win95 Printer using Samba In-Reply-To: <199611060136.UAA08126@onramp.i95.net> from Anil John at "Nov 5, 96 08:35:58 pm" To: ajohn@cyberforge.com Date: Wed, 6 Nov 1996 10:18:45 +0100 (MET) Cc: questions@freebsd.org Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 What does /var/log/lpd-errs say? This is my smbprint: #!/bin/sh # logfile=/tmp/smb-print.log server=$1 service=$2 job=$3 echo "server $server, service $service, job $job" >> $logfile ( # echo translate echo "print -" cat ) | /usr/local/samba/bin/smbclient \\\\ACC503D\\HP_III -d3 -N -P >>$logfile (I hardwired the server/service name though in that example above. maybe I had problems with that too at that time) > > > ___________________________________________________________ > CyberForge Group LLC * Internet Consulting > E-Mail: ajohn@cyberforge.com * WWW Publishing > 410-597-8139 * LAN & WAN Integration > URL: http://www.cyberforge.com > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de