I have a binary release of Samba version 1.9.16p11 running on SCO Open Server 5 and I'm using smbclient to print text files to shared PC printers. This works great except for one thing; smbclient insists on appending a form feed to the end of each print job. For my particular application I cannot have form feeds appended so my questions are.... 1. Is there a way of suppressing the form feed through some command line switch for example. 2. Failing that is there anyone out there who could supply me a replacement binary of smbclient for my platform with the additional form feed character hacked out of the print routine. Thanks in advance Malcolm Burtt. -------------- next part -------------- HTML attachment scrubbed and removed
I downloaded the code to smbclient (client.c) and I can see the code that adds the formfeed. Its enclosed within the precompiler directives.... #if FORMFEED .. .. #endif I'm guessing that the FORMFEED declaration is somewhere in one of my system include files because I can't see it in the samba source anywhere. This could account for your Linux implementation not exhibiting my problem. In any case I get the formfeed even if I run smbclient directly from the command prompt (i.e. bypassing lpd). Thanks for your input anyway. Malcolm Burtt Senior Analyst EuroGen Systems Limited. -----Original Message----- From: Jan Kratochvil [mailto:short@ucw.cz] Sent: 05 January 1999 15:32 To: Malcolm Burtt Subject: Re: Printing to PC's with no form feed Just an idea: Are you really sure that the FormFeed adds the smbclient itself? Isn't lpd" adding it there? This is a common problem. And here under Linux smbclient really doesn't append such mess to it and it would be weird that it would have this kind different behaviour depending on the OS. Lace -------------- next part -------------- HTML attachment scrubbed and removed