With samba-2.2.5, cups-1.1.14, and printcap=cups, I find that I have to explicitly clean up old print data files in /var/spool/samba with a cron job. With a traditional LPR, we use -r to tell lpr to remove the file for us after the file is spooled. With cups, we send it over ipp, and I think we should then unlink the data file ourselves. Does this seem right? --- print_cups.c~ Thu May 2 18:03:31 2002 +++ print_cups.c Wed Sep 18 13:17:08 2002 @@ -663,6 +663,9 @@ ippErrorString(cupsLastError()))); httpClose(http); + if (ret == 0) + unlink(pjob->filename); + /* else print_job_end will do it for us */ return (ret); -- Paul
On 18 Sep 2002, Paul Janzen wrote:> With samba-2.2.5, cups-1.1.14, and printcap=cups, I find that I have > to explicitly clean up old print data files in /var/spool/samba with a > cron job. > > With a traditional LPR, we use -r to tell lpr to remove the file for > us after the file is spooled. With cups, we send it over ipp, and I > think we should then unlink the data file ourselves. > > Does this seem right?Looks right to me :-) Applying it now. Thanks. I've been meaning to track this one down. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--