[Samba] Printing from linux to windows shared printer

Joel Hammer Joel at HammersHome.com
Fri May 3 18:41:02 GMT 2002

The  basic command to print to a windows printer is from a linux client is:
cat FileFormattedForYourPrinter | smbclient //servername/printershare \
  PasswordStuff -c "print -"
If you leave off the password stuff you will be prompted for it.
If this doesn't work, then, you have to find out why.
You can also just:
smbclient //servername/printershare
and log on to the share. You print files with:
print LocalFileFormattedForYourWindowsPrinter
Crank up the debugging information with -d6 (after printershare) or whatever.
Remember that windows doesn't filter anything for you.
Remember you don't need a samba server to run smbclient.

On Fri, May 03, 2002 at 05:17:29PM -0400, Miguel Arellano (ht) wrote:
> Hello ...
> I've configured a printer in linux using printconf-gui as a windows shared
> printer via smb.  But when I send a job it doesn't print ...
> Any comments?  I'm using RH 7.1 with samba that came bound with RH CDs.
> Thanks a lot ...
> Version: 3.12
> GCS/E d+(++) s: a C+++ UCL*+++$ P L+++$ E--- W+++$ N++ o K++ w$
> O- M- V- PS+ PE Y PGP t 5 X+ R* tv+ b++ DI--- D++
> G e++ h--- r+++ y+++
> ------END GEEK CODE BLOCK------

More information about the samba mailing list