[Samba] problem for printing with smbclient
Kevin Berkane
kberkane at flash-europe.com
Fri Feb 7 08:58:26 GMT 2003
Hello I'am french and I have a big problem with a great feature of smbclient, I can't print anymore postscript document directly to my network printer(postscript compatible)
We have recently change of server, we used a old linux distribution ( suse 5 or 6) with samba 1.9 and we had no problem with it
exemple :
[warrior:/]> cat /tmp/aaa.ps | smbclient '\\lasercouleur\direct' -U ANONYMOUS -P '' -N -c 'print -'
Added interface ip=172.16.57.55 bcast=172.16.57.255 nmask=255.255.255.0
Domain=[FLASH] OS=[VxWorks] Server=[EFISmbServer0.05]
security=share
printing file - as stdin
113 bytes printed
[warrior:/]>
it run correctly
But with our new server, we use a Mandrake 9.0 distribution with samba (2.2.6.pre2) and that don't works anymore
[rainbow:~]> cat /tmp/epilogue.ps | smbclient '\\lasercouleur\direct' -U ANONYM
OUS -P '' -N -c 'print -'
added interface ip=172.16.57.33 bcast=172.16.57.255 nmask=255.255.255.0
Domain=[FLASH] OS=[VxWorks] Server=[EFISmbServer0.05]
putting file - as stdin-26374 Error writing file: ERRSRV - 22
(0.0 kb/s) (average 0.0 kb/s)
[rainbow:~]>
I try to find a solution on the internet but i don't find any information about the ERRSRV - 22
I try to compil and install a other version of samba (2.2.7.). But i have the same errors
I try with the debug mode (-d3 ...) but that don't give me more information
i try with differents parameters in the smb.conf but it's don't work
[rainbow:/usr/local/samba/bin]> cat /aaa.ps | smbclient '\\lasercouleur\direct' -d3 -U ANONYMOUS -P '' -N -c 'print -'
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface ip=172.16.57.33 bcast=172.16.57.255 nmask=255.255.255.0
Client started (version 2.2.6pre2).
resolve_lmhosts: Attempting lmhosts lookup for name lasercouleur<0x20>
resolve_hosts: Attempting host lookup for name lasercouleur<0x20>
Connecting to 172.16.57.99 at port 139
Domain=[FLASH] OS=[VxWorks] Server=[EFISmbServer0.05]
putting file - as stdin-27345 Error writing file: ERRSRV - 22
SUCCESS - 0 closing remote file stdin-27345
[rainbow:/usr/local/samba/bin]>
If someone can help me i will be very great
Kevin berkane
More information about the samba
mailing list