[Samba] print job not deleting

Isaac Saldana isaldana at ee.ucr.edu
Sat Jun 22 05:52:03 GMT 2002


The following is the patch to lpq_parse.c in Samba 2.2.5 to fix this problem 
so that windows clients dont list the last job printed using LPRng:

####################STARTS HERE######################
--- lpq_parse-old.c     Fri Jun 21 11:29:58 2002
+++ lpq_parse.c Fri Jun 21 11:31:16 2002
@@ -252,6 +252,10 @@
     return(False);
   }

+  if(strequal(tokarr[LPRNG_RANKTOK],"done")) {
+    return(False);
+  }
+
   buf->job  = atoi(tokarr[LPRNG_JOBTOK]);
   buf->size = atoi(tokarr[LPRNG_TOTALTOK]);

######################ENDS HERE#####################


On Thu, Jun 13, 2002 at 12:39:02AM +0000, Van Sickler, Jim wrote:
> That fixed it-adding :done_jobs=0 to /etc/printcap,
> in my .common section.  Now the last job is removed
> from the printer queue dir, and doesn't show as
> Paused in the Windows Printer Status box.
> 
> Thanks!
> 
> Jim
> 
> > -----Original Message-----
> > From: amit deshmukh [mailto:adeshmuk at eng.utoledo.edu]
> > Sent: Wednesday, June 12, 2002 2:33 PM
> > To: Van Sickler, Jim
> > Cc: 'Wise, Gene'; 'samba at lists.samba.org'
> > Subject: RE: [Samba] print job not deleting
> > 
> > 
> > 
> > I faced the same problem. I think done_jobs is printcap 
> > parameter and not
> > lpd.conf. Also try compling lprng with --with-done-jobs=0. I 
> > did that and
> > it worked for me
> > 
> > Amit
> > 
> > --------------------------------------------------------------
> > ----------------
> > Amit Deshmukh
> > Graduate Student (EECS)
> > University of Toledo.
> > 
> > Contact Address
> > ~~~~~~~~~~~~~~~
> > 2952, Kendale Drive,
> > Apt #202,
> > Toledo OH 43606
> > Ph. 419-471-9789
> > --------------------------------------------------------------
> > ----------------
> > 
> > On Tue, 11 Jun 2002, Van Sickler, Jim wrote:
> > 
> > > You're using LPRng...it's a "feature" that
> > > appeared in 3.8.10/3.8.12.  Not fixed yet...
> > > 
> > > If you Cancel the Paused job, it goes away.
> > > (The job has already been printed by the
> > > time it's listed as Paused).
> > > 
> > > Patrick & the LPRng list are aware of it.
> > > 
> > > Jim
> > > 
> > > > -----Original Message-----
> > > > From: Wise, Gene [mailto:Wise at northjersey.com]
> > > > Sent: Tuesday, June 11, 2002 3:53 PM
> > > > To: 'samba at lists.samba.org'
> > > > Subject: [Samba] print job not deleting
> > > > 
> > > > 
> > > > Has anyone seen this?
> > > >      When we print using Samba, the printjob stays in the 
> > > > queue after prints
> > > >  Also in the LPD.conf is set to :
> > > > 				save_when_done@
> > > > 				done_jobs=0
> > > > 				done_jobs_max_age=1
> > > > We're using Redhat 7.3.
> > > > Samba 2.2.4-1
> > > >                               Any help would great,
> > > >                                   Gene Wise
> > > > 
> > > > -- 
> > > > To unsubscribe from this list go to the following URL and read the
> > > > instructions:  http://lists.samba.org/mailman/listinfo/samba
> > > > 
> > > 
> > > -- 
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions:  http://lists.samba.org/mailman/listinfo/samba
> > > 
> > 
> 
               
Isaac Saldana 
Systems Administrator
College of Engineering
Department of Electrical Engineering
University of California, Riverside




More information about the samba mailing list