[Samba] Printing using smbclient
Joel Hammer
Joel at HammersHome.com
Sun Nov 17 18:39:00 GMT 2002
The command to print basically is:
cat file_already_formatted_for_your_printer | smbclient //server/printer -c 'print -'
You will have to include some stuff for passwords and all.
This can be made much more complicated, of course. You can set up a print
queue on your linux server which filters the file and then sends it to your
windows printer with the above command.
The biggest problem is getting a print filter for your printer which runs
under linux. What is the name and model of your printer. The best of all
worlds is that it is a postscript printer.
Joel
On Sun, Nov 17, 2002 at 12:15:20PM -0500, Steven L Hawks wrote:
>
> no replies
>
> Steven L. Hawks
> External IT Support
> Cole-Layer-Trumble Company
> (937) 276-5261 x 235
>
>
>
> Joel Hammer
> <Joel at HammersHome To: Steven L Hawks <SLHawks at cltco.com>
> .com> cc:
> Subject: Re: [Samba] Printing using smbclient
> 11/16/02 05:23 PM
>
>
>
>
>
>
> Have you had any replies to this?
> Joel
> On Mon, Nov 11, 2002 at 02:57:33PM -0500, Steven L Hawks wrote:
> > I can see the windows client from my DG-UNIX server.
> >
> > # /usr/local/samba/bin/smbclient -L publicaud
> > Added interface ip=192.168.168.25 bcast=192.168.168.255
> nmask=255.255.255.0
> > Server time is Mon Nov 11 16:10:22 2002
> > Timezone is UTC-5.0
> > security=share
> >
> > Server=[PUBLICAUD] User=[] Workgroup=[AUDITOR] Domain=[AUDITOR]
> >
> > Sharename Type Comment
> > --------- ---- -------
> > FX900 Printer
> > IPC$ IPC Remote Inter Process Communication
> > PRINTER$ Disk
> >
> > # lp -d fx900 /.profle
> > UX:lp: ERROR: Destination "fx900" is unknown to the
> > LP print service.
> >
> > How do I print to it?
> >
> > Steven L. Hawks
> > External IT Support
> > Cole-Layer-Trumble Company
> > (937) 276-5261 x 235
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba
>
>
>
>
More information about the samba
mailing list