[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

samba not printing via lpr



Hi,

	until a few days ago, I was using samba to print to a laserjet
attached to a NT box. Today I needed to print a C program, using a2ps, but
printing doesn't work anymore. I *think* I upgraded samba recently, but I
don't recall how long ago...

I have this on /etc/printcap

lp|lj|hpljiip|HP Laserjet IIp:\
        :lp=smb:bq=smb:sd=/var/spool/lpd/hpljiip:\
        :sh:pw#80:pl#66:px#1440:mx#0:if=/usr/sbin/ljet2p-filter:\
        :af=/var/log/lp-acct:lf=/var/log/lp-errs:
smb|samba|Gateway to shared printer on NT box:\
        :lp=/dev/null:sd=/var/spool/lpd/smb:\
        :if=/usr/local/bin/smbprint:

it's set up to do bounce queueing from lj to smb, so the input gets
filtered thru magicfilter.

I can print using something like (on a shell prompt)

cat file.filtered_thru_magicfilter | /usr/bin/smbclient \
	"\\\\$server\\$service" $password \
        -U $user -c "print -" -P >> $logfile

This is in fact the line I have in smbprint. The variables are ok. (I
inserted a "set > $tempfile" just before this command, they ARE ok).
file.filtered_thru_magicfilter is the file sitting in /var/spool/lpd/smb
waiting to be printed.

From the status.smb,

printing 'mmagallo@pollux+401', start, attempt 650 at 13:02:34
opening '/dev/null' at 13:02:34, attempt 1 at 13:02:34
accounting at start 'mmagallo@pollux+401' at 13:02:34
printing 'mmagallo@pollux+401', file 1 '(stdin)', size 2309111, format 'f'
at 13:02:34
write error after 57344 bytes 'Broken pipe' at 13:02:34
smb: write error after 57344 bytes - Broken pipe at 13:02:34
subserver status 'JFAIL' for 'mmagallo@pollux+401' at 13:02:34
job 'mmagallo@pollux+401', attempt 650, allowed 3 at 13:02:34
job 'mmagallo@pollux+401', retrying job at 13:02:34
sleeping 10 secs before retry at 13:02:34 

Looking at the file in the spool directory:

bellatrix# hexdump -n 10 -s 57340 file.filtered_thru_magicfilter

000dffc fc0f f80f 1e00 00e8 2004
                    ^^^^^
Could it be that lprng is choking on the 00's?

I have:

Versions of the packages samba depends on:
netbase Version: 3.01-1.1
ldso    Version: 1.9.6-2
libc5   Version: 5.4.33-7
libpam0 Version: 0.56-2
libpwdb0        Version: 0.54preD-2

Versions of the packages (lprng|magicfilter) depend on:
libc6   Version: 2.0.6-0.3
ncurses3.4      Version: 1.9.9g-6

Any ideas? Thanks in advance...


				Marcelo Magallón


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble?  e-mail to templin@bucknell.edu .


Reply to: