Printing from Linux on NT4Wks

Dolgopolov Sergey virgo at azcher.kharkov.ua
Wed Dec 13 09:28:25 GMT 2000


Hello.
I want to print out from Linux (Samba 2.0.7 as PDC) on the printer which
stands on NT4 Wks.
But to regret I it can not make.
Mine /etc/printcap
hewlett:\
       :sd =/var/spool/lpd/hewlett:\
       :mx#0:\
       :sh:\
       :lp =/dev/null:\
       :lf =/var/spool/lpd/hewlett/error:\
       :af =/var/spool/lpd/hewlett/acct\
       :if =/var/spool/lpd/hewlett/print-net:

Filter print-net:

 #!/bin/sh
client = "finance3"
share = "HewlettP"
printfile = "/tmp/smbspool. $$ "
cat > $printfile
if [-s $printfile]; then
  (echo "translate"; echo " print $printfile "; echo "quit") \
  | smbclient \\\\ $client \\ $share -P -N
fi
rm -f $printfile

When I ship on printing lpr -Phewlett sample.txt file is not typed and
lies in spool.
lpc status:

hewlett:
        queuing is enabled
        printing is enabled
        1 entry in spool area

Suggest in what an error.

Sergey. virgo at azcher.kharkov.ua






More information about the samba-ntdom mailing list