Hi guys, Sorry if this question was posed earlier! I have a Unix box mounted by Samba and my NT 4.0 domain_A machines can locate the shares on the Unix box. I, however, have a share on the NT side which is a printer! My question is : How can I make use of Samba to use the NT printer share and print from the unix box. Or what shall I do to be able to print from the unix machine to the printer defined in the Domain_A NT side. Thanks a million Maher
Examine the files in the "examples/printing" directory of the Samba distribution for a good explanation of this topic. At 06:08 PM 1/20/98 +1100, Maher Khzouz wrote:>Hi guys, > >Sorry if this question was posed earlier! > >I have a Unix box mounted by Samba and my NT 4.0 domain_A machines can >locate the shares on the Unix box. I, however, have a share on the NT >side which is a printer! My question is : > >How can I make use of Samba to use the NT printer share and print from the >unix box. Or what shall I do to be able to print from the unix machine to >the printer defined in the Domain_A NT side. > >Thanks a million > >Maher > > >-------------------- Michael St. Laurent Hartwell Corporation "Whenever you find yourself on the side of the majority it is time to pause and reflect." -- Mark Twain
Maher Khzouz writes: > How can I make use of Samba to use the NT printer share and print from the > unix box. Or what shall I do to be able to print from the unix machine to > the printer defined in the Domain_A NT side. smbclient -P \\\\machine\\service -c "print file_name" E.g. your printcap could have somthing like: nt_printer:\ :if=/usr/bin/smbclient \\\\machine\\service -P -U% -c "print -":\ :lf=/var/log/lpd-nt_printer:\ :mx#0:\ :sh:fo: the "-" in "print -" being print the file from stdin.