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

Re: Samba Printing Problem



Hi, I actually did the same thing, bu I used printtool instead and
it worked fine...

Try doing it that way first, it may work.... hope this helps...

Ahbaid.

Harjinder Dhudwar wrote:
> 
> I'm currently using samba to connect to a couple of of win98/95 machines.
> Now I am trying to use the printers on these machines.
> 
> The printer is a HP LaserJet 4L
> I have added an entry in /etc/printcap
> 
> hp4:\
>         :sd=/var/spool/lpd/hp4:\
>         :mx#0:\
>         :sh:\
>         :if=/usr/bin/smbprint:
>         :af=/var/spool/lpd/hp4/acct:\
>         :lp=/dev/null:
> 
> The /usr/bin/smbprint reads
> 
> log=/tmp/smb-print.log
> spool_dir=/var/spool/lpd/hp4
> config_file=$spool_dir/.config
> eval `cat $config_file`
> echo "server $server, service $service" >> $log
> (
> #NOTE You may wish to add the line `echo translate` if you want automatic
> #CR/LF translation when printing.
>         echo translate
>         echo "print - "
> )       cat
>         | /usr/bin/smbclient "\\$server\$service" $password -P >> $log
> 
> I use lpr -P hp4 [file] to print and when I check using lpq, I get
> 
> waiting for hp4 to become ready (offline ?)
> Rank   Owner      Job  Files                                 Total Size
> 1st    root       16   /etc/printcap                         817 bytes
> 
> Any help much appreciated.
> 
> ----------------------------------------
> Harjinder Dhudwar
> Curvalue UK Services Ltd.
> h dhudwar curvalue com
> 
> --
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>                 http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-list-request redhat com with
>                        "unsubscribe" as the Subject.

-- 
Ahbaid Gaffoor
Systems Administrator
Guyana Sugar Corporation
199 Camp Street, Georgetown, 
Guyana, S. America

Phone:	592-2-62593
Fax:	592-2-70410
e-mail:	ahbaidg guyana net gy or ahbaidg yahoo com



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