Patrick.Charpentier@recreation.bombardier.com
2002-Feb-06 08:34 UTC
[Samba] smblcient printing problem
Hi, I try to print from my Lunix Debian (potato) box to a network printer. It's Xerox DC. I connect to the printer succesfully with this command : Smbclient \\\\<machine <\\\\<machine> name>\\<printer name> -U user -P In the smb command prompt, I type " print filename " but my printer print only the first line of the file on the paper When I try " translate " and after " print filename ", the printer superimpose all lines of the file into on line on the paper output. I think my printer donc recognize the " end line " caract?re. Does anyone have a idea on how to solve this ? Thks a lot! Patrick -------------- next part -------------- HTML attachment scrubbed and removed
When faced with this situation, I generally run my files through the programs todos and fromdos. Most unices have them and they nicely translate the characters for me. once you are able to print this way, you should investigate putting it all into a printer filter, then you can just do a cat filename | lpr or ls -l | lpr etc. on the linux box. However, you may find that this network printer will talk lp which makes things even easier, you just have to modify your /etc/printcap and then pipe things to lpr as abve. Martyn At 11:28 AM 2/6/02 -0500, Patrick.Charpentier@recreation.bombardier.com wrote:>Hi, > > I try to print from my Lunix Debian (potato) box to a network > printer. It's Xerox DC. I connect to the printer succesfully with this > command : > >Smbclient \\\\<machine name>\\<printer name> -U user -P > >In the smb command prompt, I type " print filename " but my printer >print only the first line of the file on the paper > >When I try " translate " and after " print filename ", the printer >superimpose all lines of the file into on line on the paper output. > >I think my printer donc recognize the " end line " caract?re. > >Does anyone have a idea on how to solve this ? > >Thks a lot! > >PatrickMartyn Life's a bitch, but so am I.