Printer

Joel Hammer Joel at HammersHome.com
Tue Jan 22 21:03:04 GMT 2002


Another version of the print command is:

cat FileToPrint  | smbclient //server/printshare  -N -c "print -"  

So, a final version might look like this:
cat FileToPrint | gs -dSAFER -q -sDEVICE=YourPrinter -sOutputFile=- -  | \
                 smbclient //server/printshare  -N -c "print -"  

 Note, I haven't tried this all out, but this should give you the idea.
 
Joel



On Tue, Jan 22, 2002 at 11:04:40PM -0500, Joel Hammer wrote:
> You can print to a windows printer. It can be tricky to set up. There are
> scripts available, which may not always work. The basic command is:
> 
> smbclient //server/printshare -Uuser%password -c "print FileToPrint"
> 
> I am never sure of the password stuff because I don't use them on my home
> system. If you don't need a password, use -N instead of -Uuser%password.
> 
> The FileToPrint must be formatted for your printer. Windows will not, I
> believe, do any filtering for you.
> 
> You can get creative and put this command into a printer filter, so you can
> just print with lpr. Of course, you will need to filter the job for your
> windows printer. If you have a postscript printer, this won't be too
> difficult to do.
> 
> Joel
> 
> 
> On Tue, Jan 22, 2002 at 03:19:29PM -0300, Supervisor wrote:
> > Hi,
> > 
> >     I want to know if there's a thay i can do to my linuxbox use a printer installed in a win2k server(this computer is acting as print-server in my domain).
> > 
> > Thanks in advance,
> > 
> > Rafael
> 
> -- 
> 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