I seem to have some issues coming to terms with the new smbprint configuration. Not that it is all that new, but I have worked on a ton of AIX Samba systems that are runing 1.9.x and the smbprint worked great in all aspects. The box's couldn't be upgraded (or so said the company that did application builds related to Samba). The printers were and are hosted from windows95 workstations and shared. I currently am running RedHat 7.2, and am using rpm's but have uninstalled and installed from source back and fourth to see if something was wrong with the install. My main issue is I think I just dont understand the command line of smbprint script in Samba 2.2.1a compared the the script included in 1.9.x. And I have seen 2 different explanations of the .config file. Both explanations saying that field order matters. but both having different fields. #One was: share=\\server\printer user="username" password="" #Another was: server=server service=printer password="" My /etc/printcap entry has evolved to this entry over time, and seeing a few different howto's and reading the doc's: Laser_1100:sh:mx=0:sd=/var/spool/lpd/Laser_1100:af=/var/spool/lpd/Laser_1100/Laser_1100.acct:lp=/dev/Laser1100:if=/usr/bin/smbprint: Main problem is once I create the .config with either of the preceding examples, then the smbprint file errors with: : Not enough '\' characters in service The format I have tried smbprint is 'smbprint host service username password </redirected input' which worked with the 1.9.x script, and still does. So I am not sure if the .config file in each instance was incorrect, or the syntax of my command. I also tried smbspool command and didn't seem to get that correct either. If anyone who has this working is willing to shoot me an email, or point me at usage docs or an obvious mistake, then that would be great. Thanks in advance for any assistance. Please email to samba@a-1loans.com as well as the list. Thanks, Trevor -------------- next part -------------- HTML attachment scrubbed and removed
I think you need to escape the backslashes by putting them in single quotes, otherwise they disappear. Here's my .config file, which is working with Samba 2.2.3a: share='\\SERVER-CCS-90\HPLJ8100PS' hostipuser='linuxprint' password='xxxxxxxx' workgroup='INTERCLEAN' Note the use of single quotes. -----Original Message----- From: Trevor Benson [mailto:samba@a-1loans.com] Sent: Wednesday, February 20, 2002 12:52 PM To: samba@lists.samba.org Subject: [Samba] smbprint & .config I seem to have some issues coming to terms with the new smbprint configuration. Not that it is all that new, but I have worked on a ton of AIX Samba systems that are runing 1.9.x and the smbprint worked great in all aspects. The box's couldn't be upgraded (or so said the company that did application builds related to Samba). The printers were and are hosted from windows95 workstations and shared. I currently am running RedHat 7.2, and am using rpm's but have uninstalled and installed from source back and fourth to see if something was wrong with the install. My main issue is I think I just dont understand the command line of smbprint script in Samba 2.2.1a compared the the script included in 1.9.x. And I have seen 2 different explanations of the .config file. Both explanations saying that field order matters. but both having different fields. #One was: share=\\server\printer user="username" password="" #Another was: server=server service=printer password="" My /etc/printcap entry has evolved to this entry over time, and seeing a few different howto's and reading the doc's: Laser_1100:sh:mx=0:sd=/var/spool/lpd/Laser_1100:af=/var/spool/lpd/Laser_1100 /Laser_1100.acct:lp=/dev/Laser1100:if=/usr/bin/smbprint: Main problem is once I create the .config with either of the preceding examples, then the smbprint file errors with: : Not enough '\' characters in service The format I have tried smbprint is 'smbprint host service username password </redirected input' which worked with the 1.9.x script, and still does. So I am not sure if the .config file in each instance was incorrect, or the syntax of my command. I also tried smbspool command and didn't seem to get that correct either. If anyone who has this working is willing to shoot me an email, or point me at usage docs or an obvious mistake, then that would be great. Thanks in advance for any assistance. Please email to samba@a-1loans.com as well as the list. Thanks, Trevor
I seem to have figured out the problems that I had. The smbprint script included in the 2.2.1a seems to have a UNC style share listed \\server\service instead of //server/service which is how it is required in the .config (or so it appeared). And the rest seems to work great. Thanks anyway everyone. Trevor ----- Original Message ----- From: Trevor Benson To: samba@lists.samba.org Sent: Wednesday, February 20, 2002 9:51 AM Subject: smbprint & .config I seem to have some issues coming to terms with the new smbprint configuration. Not that it is all that new, but I have worked on a ton of AIX Samba systems that are runing 1.9.x and the smbprint worked great in all aspects. The box's couldn't be upgraded (or so said the company that did application builds related to Samba). The printers were and are hosted from windows95 workstations and shared. I currently am running RedHat 7.2, and am using rpm's but have uninstalled and installed from source back and fourth to see if something was wrong with the install. My main issue is I think I just dont understand the command line of smbprint script in Samba 2.2.1a compared the the script included in 1.9.x. And I have seen 2 different explanations of the .config file. Both explanations saying that field order matters. but both having different fields. #One was: share=\\server\printer user="username" password="" #Another was: server=server service=printer password="" My /etc/printcap entry has evolved to this entry over time, and seeing a few different howto's and reading the doc's: Laser_1100:sh:mx=0:sd=/var/spool/lpd/Laser_1100:af=/var/spool/lpd/Laser_1100/Laser_1100.acct:lp=/dev/Laser1100:if=/usr/bin/smbprint: Main problem is once I create the .config with either of the preceding examples, then the smbprint file errors with: : Not enough '\' characters in service The format I have tried smbprint is 'smbprint host service username password </redirected input' which worked with the 1.9.x script, and still does. So I am not sure if the .config file in each instance was incorrect, or the syntax of my command. I also tried smbspool command and didn't seem to get that correct either. If anyone who has this working is willing to shoot me an email, or point me at usage docs or an obvious mistake, then that would be great. Thanks in advance for any assistance. Please email to samba@a-1loans.com as well as the list. Thanks, Trevor -------------- next part -------------- HTML attachment scrubbed and removed