Problems while running lpq but lpr works... (samba bug?)

Andre Albsmeier andre.albsmeier at
Wed Sep 2 14:20:39 GMT 1998


I am using samba samba-1.9.18p10 quite happily on a FreeBSD-STABLE

The printing works (the paper comes out of the printer) but when I
examine the printer queue on the Windows machine, it is always empty
(even if the printer is offline).

By turning on the debugging I saw the follwing output in the logfile:

 Running the command `lpr -r -s -P kyo /var/spool/samba/mobifi.n23036' gave 0

Here, with the print command, everything works. But later we find

 Running the command `lpq -PIPC$' gave 256

which fails of course since there is no printer IPC$. I have

 print command = lpr -r -P %p %s


 lpq command = lpq -P %p

in my configfile but for some reason, the substitution of %p doesn't
work in the second case... Even if I leave out the lpq command,
the result is the same.

Is there something I am doing wrong or is this a samba bug?

Thanks for any answers in advance; I won't be able to respond
for the next 2 or 3 weeks since I am on holiday starting tomorrow.


More information about the samba mailing list