[Samba] smbclient & /etc/printcap Why does my printconf-gui doesnt work? (samba 2.2.3a) Red Hat Linux 7.2 enigma-

Joel Hammer Joel at HammersHome.com
Fri Jul 19 06:01:12 GMT 2002

I haven't time right now to mess much with this, but basically, you are on
the right track.
This can be done in several ways.
Cheap and dirty. Just print to file and then run a script which prints
that file to your w2k printer. This could be made fancy with a cron entry
which checks for that file's existence, prints it, then erases it.
You could set up a regular print queue (look at /etc/printcap for ideas) and
make your printer filter in that queue something like:
cat | fullpathname/smbclient serverstuff passwordstuff -c '-' or something
close to this.
run checkpc -f after the queue is set up and restart lpd.
Or, there be a way to run the print command directly out of koffice.
cat %s or %f | smbclient etc.
Most print commands in linux apps are things like:
lpr -Pprinter
Change this command to your smbclient command and experiment with it.

On Sat, Jul 20, 2002 at 12:25:45AM +1200, Diembo wrote:
> I have played around with samba now for quite a while but couldnt print on my 
> win2k box with koffice. with the command line smbclient it works:
> smbclient //server/hpdeskje -N -P -U user -c 'print hello'
> prints a text (from the file hello) "Hello World"
> Also a print to file file off my win2k box would print fine with smbclient. 
> Only, I cant quite find out how the printcap file works. With my 
> printconf-gui tool nothing works!	
> what has to be the :if=??:\
> I thought it would be 
> smbclient //server/hpdeskje -N -P -U user -c 'print -'
> or do i have to use the smbprint script with options I didnt figure out yet 
> what they mean?? Do I have to use :af=??:\
> My, I think I'm close but this printing with LINUX has been quite an issue 
> for me, so far.
> Thanks in advance
> -- 
> Diembo working O Linux :-P
> -- 
> 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