Hello, I try to print to a printer connected to a Window NT 4.0 server computer using smbclient, but nothing is printed. These are the set up :-- 1. /etc/printcap file: lp|hp3p|LaserJet3p at Ani's PC:\ :lp=/dev/null:\ :rm=cedmms:\ :rp=hp3p:\ :sd=/var/spool/lpd:\ :if=/usr/freeware/bin/smbprint:\ :mx=0:\ 2. Following is the script in smbprint: logfile=/tmp/smb-print.log server=cedmms service=hp3p password=ced username=ced echo "server $server, service $service" >> $logfile ( echo translate echo "print -" cat ) | /usr/freeware/bin/smbclient "\\\\$server\\$service" $password -U $username -P >> $logfile I can use two printing command in my system -- lpr & lp When I use lpr -p -r -s <filename>, the file only remains in the spool directory and never pipe to smbprint When I use lp <filename>, the following error is logged in the smb-print.log file: server cedmms, service hp3p Server time is Sat Jan 22 10:51:38 2000 Timezone is UTC+8.0 Domain=[CED] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] smb: \> CR/LF<->LF and print text translation now on smb: \> printing file - as stdin read gave 0 0 bytes printed Your help is much appreciated. Thanks. - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to [EMAIL PROTECTED]
