Date: 09 Nov 2002 12:38:34 +0000 From: Stacey Roberts <stacey@Demon.vickiandstacey.com> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Cc: ports@freebsd.org Subject: Printing to Win2K share printer with apsfilter via samba fails with unable to write to output, fd=6, count=1000: m Message-ID: <1036845516.387.30.camel@Demon.vickiandstacey.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hello,
I've got samba-2.2.6 running on FreeBSD 4.7 Stable set up and
working okay.
I'm trying to enbale printing to an HP 845c printer attached to a Win2K
Pro box on the network.
I installed apsfilter-7.2.3_1, which claims to be able to do this, but
after configuring / printing test page / installation, nothing prints,
from *any* application, or command line. This is what I get in spool dir
logs:
# more /var/spool/lpd/hp845c/errs.FvAEICA
apsfilter warning: unknown option 'Demon.vickiandstacey.com'
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
The printcap produced by apsfilter:
hp845c|ijs/DESKJET_845;r=600x300;q=medium;c=full;p=a4;m=auto:\
:lp=/dev/null:\
:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/hp845c:\
:lf=/var/spool/lpd/hp845c/log:\
:af=/var/spool/lpd/hp845c/acct:\
:mx#0:\
:sh:
# APS1_END - don't delete this
#
Printer section of smb.conf:
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/lpd/
printable = yes
browseable = no
smbprint:
TRANS=0
eval acct_file=\${$#}
spool_dir=`dirname $acct_file`
config_file=$spool_dir/.config
# Should read the following variables set in the config file:
# server
# service
# password
# username (optional)
# IP (optional)
# debug (optional)
# debugsmb (optional)
# debugfile (optional)
. $config_file
if [ "x$password" = "x" ] ; then
password="-N"
fi
if [ "x$username" == "x" ] ; then
username="$server";
fi
while test $# -gt 0; do
case "$1" in
-t)
TRANS=1
;;
*) # Bad Parameters, ignore them ...
;;
esac
shift
done
command="print - ;"
if [ $TRANS -eq 1 ]; then
command="translate;$command";
fi
debugfile="/tmp/smb-print.log"
if [ "x$debug" = "x" ] ; then
debugfile=/dev/null debugargs=
else
if [ $debug -eq 0 ] ; then
debugfile=/dev/null debugargs=
else
set -x; exec >>$debugfile 2>&1
debugargs="$debugfile."
#[ "x$debugsmb" == "x" ] || debugargs="$debugargs -d
$debugsmb"
fi
fi
if [ "x$smbconf" != "x" ]; then
smbconf="-s $smbconf"
fi
if [ "x$IP" != "x" ]; then
IP="-I $IP"
fi
if [ "x$debugargs" != "x" ]; then
debugargs="-l $debugargs"
fi
/usr/local/bin/smbclient \ <-- changed from $smbclient for investigation
"\\\\$server\\$service" \
$password \
$smbconf \
$IP \
$debugargs \
-U $username \
-P \
-c "$command"
#
I'd appreciate any help with this. I've searched google and the
apsfilter list archives for pointers, but only found lots of references
to other people having the same problem, but not replies with answers,
or solutions - well the solutions that *were* suggested are advisories
to use CUPS instead.
Hope to hear from "anyone" soon. Thanks in advance.
Regards,
Stacey
--
Stacey Roberts
B.Sc (HONS) Computer Science
Web: www.vickiandstacey.com
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQEVAwUAPc0ByJvQeubckvvXAQHXkwf/TJn/fSdtlA2laraMQXazoaa+gEzqhyar
4nc4mjKHQKK8pT9Vt9xEuT7hvwdIRkeepemFCV+LsN2duZvS7KjRMFRzJW6V/H5f
PKCvUBhSxJSCAAdCZFCmaM/g0+iERzIq8Gf7xgCpfbEKqIpY4WxnY91AdiEUakeM
J5MRnJP/eyeLZtlKXPYCoLQllg441zJAN5ypatieRfQoh7thnd9pZat3dl9NZW7x
l+lpbp3dTPs7Jvg7DdQ459Bosw6kG5MfXG7iJvFtDw1Z6aT8nJc09IQxVMoHNqQd
o6QrsK8N7XfGZ7pWqjaSYEaQExESTARF/LOOxryWaAKVY/1/S5QMLw==
=7YJq
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1036845516.387.30.camel>
