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 '[EMAIL PROTECTED]', start, attempt 650 at 13:02:34 opening '/dev/null' at 13:02:34, attempt 1 at 13:02:34 accounting at start '[EMAIL PROTECTED]' at 13:02:34 printing '[EMAIL PROTECTED]', 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 '[EMAIL PROTECTED]' at 13:02:34 job '[EMAIL PROTECTED]', attempt 650, allowed 3 at 13:02:34 job '[EMAIL PROTECTED]', 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 [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .