Doug, What does your /etc/printcap file look like? The error you get looks as though that file's not quite right.
Mark Post -----Original Message----- From: Doug Clark [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 10:11 PM To: [EMAIL PROTECTED] Subject: Re: samba config help needed Originally I wrote: I have the file sharing and printing all worked out using Samba 2.2 under SuSE Linux version 7 Enterprise Server for S/390. I have uploaded print drivers and that also went as documented. The only problem I am now having is that when I print, it goes nowhere (into the great bit-bucket-in-the sky) and I need to prove the printing capability by 9:00 am PST 1/29/2003. Any assistance you can give me would be greatly appreciated. I incorrectly sent this original post directly to Tzafrir rather than the distribution list. Anyway, after the response I received I made the modification suggested and now I receive this message. This makes me believe that I do not have environment variables %p and %s set correctly. The machine known as MB2ITBE1 should be my default printer and when I print "lpr /etc/fstab" from the Linux command line it prints to this printer just fine. But with the change made to debug "lpc > /tmp/prints/print_%p_%s" I don't believe the %s is set correctly? Can someone confirm this information. Thanks Doug -rw-rw-rw- 1 tsg74 sysprog 37 Jan 27 18:49 print_MB2ITBE1_%s tsg74@becrlnx1:/tmp/prints > cat print* Printer 'lpMB2ITBE1' does not exist! tsg74@becrlnx1:/tmp/prints > On Mon, 27 Jan 2003 [EMAIL PROTECTED] wrote: > Tzafrir, > > A bad time to ask me (this is 3:30 AM, and I'm supposed to be in bed by now). I don't have the original thread, but: - in smb.conf, [global]: what is the value of "printing" ? The default is "bsd", and it means that printing should just use 'lpr -Pprintername' and query using lpq . Do you have cups installed? Maybe change that to cups ? Anyway, you can manually set: 'print command' , 'lpq command' , 'lprm command' This gives rise to a useful debugging technique: create the directory "/tmp/prints" . Maybe it should be world-writable (chances it shouldn't) Then set in smb.conf: lpq command = /bin/cat > /tmp/prints/print_%p_%s This should send the current print job to a file /tmp/print/print_PRINTER_NAME . Then try printing it with: cat /tmp/print/print_PRINTER_NAME |lpr PRINTER Also, increase the debug level of samba to 3 . Have a look at the log of the host from which you print. Have a look at the file Printing.txt of the samba docs Another thing: to print using smbclient from the local linux machine, comment to the share of the printer with smbclient ('smbclient //hostname/share' , or maybe 'smbclient //hostname/share -U %') and use the command "print" . Please follow-up to the list. BTW: maybe try connecting to some irc server, to #linuxhelp ... I'm off to bed now -- Tzafrir Cohen mailto:[EMAIL PROTECTED] http://www.technion.ac.il/~tzafrir
