Printer queue problem (LPRng 3.4.2, Samba 1.9.18p4,
Steen Jensen
sj at kom.auc.dk
Tue Apr 21 19:37:48 GMT 1998
On Wed, 15 Apr 1998, Sbragion Denis wrote:
infotecn> Hello,
infotecn>
infotecn> >I've been having a problem with Win95 clients watching a printer queue on
infotecn> >the Samba server (called labserv2). labserv2 is a Solaris 2.5.1 machine
infotecn> >running samba 1.9.18p4. The printing system is LPRng 3.4.2.
infotecn> >
infotecn> >A user can watch the printer queue from a Win95 client machine. However,
infotecn> >when the printer queue gets backed up (usually about 12 jobs), the queue
infotecn> ..
infotecn> >Does anybody have any clues?
infotecn>
infotecn> here we have exactly the same problem. Already tested with different
infotecn> version of lprng. Already reported to samba bugs. The only solution I found
infotecn> is the following one (under Linux):
infotecn>
infotecn> lpq command = /usr/bin/lpq -P %p | /bin/head -15
infotecn>
infotecn> Of course using this command you'll see only the first 10 jobs in the
infotecn> printer queue.
Try this patch from Jeremy Allison:
----------------------cut here------------------------
Index: ipc.c
===================================================================
RCS file: /data/cvs/samba/source/ipc.c,v
retrieving revision 1.73.2.10
diff -w -b -u -r1.73.2.10 ipc.c
--- ipc.c 1998/04/11 00:42:33 1.73.2.10
+++ ipc.c 1998/04/14 17:14:33
@@ -280,8 +280,9 @@
p->subcount = 0;
p->curpos = p->format;
if (i > n) {
+ p->neededlen = i;
i = n = 0;
- p->errcode = NERR_BufTooSmall;
+ p->errcode = ERROR_MORE_DATA;
}
else
p->errcode = NERR_Success;
----------------------end patch-----------------------
It fixed our problem with printerqueues longer the 12 jobs.
Best,
Steen Jensen,
Aalborg University,
Denmark.
infotecn>
infotecn> Hope it helps !
infotecn>
infotecn> Dr. Sbragion Denis
infotecn> InfoTecna
infotecn> Tel, Fax: +39 39 2324054
infotecn> URL: http://space.tin.it/internet/dsbragio
infotecn>
infotecn> ------------------------------
infotecn>
More information about the samba
mailing list