Diembo
2002-Jul-19 05:27 UTC
[Samba] smbclient & /etc/printcap Why does my printconf-gui doesnt work? (samba 2.2.3a) Red Hat Linux 7.2 enigma-
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 @ Linux :-P
Joel Hammer
2002-Jul-19 06:01 UTC
[Samba] smbclient & /etc/printcap Why does my printconf-gui doesnt work? (samba 2.2.3a) Red Hat Linux 7.2 enigma-
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: #!/bin/sh 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. Joel 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
Possibly Parallel Threads
- smbclient & printing on win2k box with HP Deskjet 560C (Drivers?) SMB 2.2.3a - Kernel 2.4.7, red hat 7.2
- where is printconf-tui on CENTOS 5.2 (migrate printer configuration)????
- printconf
- Re: SMB-server from Win2k -> RH 7.2 - Samba 2.2.1a seen in Network Neighbourhood but
- SMB-server from Win2k -> Red Hat Linux 7.2 - Samba 2.2.1a seen in Network Neighbourhood but not browsable