I'm using CUPS and Samba for my printing needs and was wondering if there was a way to remove the files in the samba spool directory automatically when a job completes? I just noticed that it is shrinking the remaining space on my /var partition. Thanks for any help
Usually, the print command for samba includes a rm %s or uses the -r (?) options for lpr. Joel On Wed, Sep 25, 2002 at 02:04:34PM -0500, Matt Lung wrote:> I'm using CUPS and Samba for my printing needs and was wondering if > there was a way to remove the files in the samba spool directory > automatically when a job completes? I just noticed that it is shrinking > the remaining space on my /var partition. > > Thanks for any help > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
I don't use cups. There must be a command you can tweak in the cups configuration that will remove files when printed. Of course, that will remove all files you print, not just ones via samba. Bad idea. Maybe a postexec command rm %s might work. Dunno. There are surely many users of cups on this list. You could always set up a cron job to remove the spooled files. Joel On Wed, Sep 25, 2002 at 03:08:09PM -0500, Matt Lung wrote:> I was under the impression that if you had your printing = cups then all > the print commands were ignored. > > I have a print command still set ... it is: > > print command = lpr -r -P%p %s > > Any suggestions? > > Joel Hammer wrote: > > >Usually, the print command for samba includes a rm %s or uses the -r (?) > >options for lpr. > > > >Joel > >On Wed, Sep 25, 2002 at 02:04:34PM -0500, Matt Lung wrote: > > > > > >>I'm using CUPS and Samba for my printing needs and was wondering if > >>there was a way to remove the files in the samba spool directory > >>automatically when a job completes? I just noticed that it is shrinking > >>the remaining space on my /var partition. > >> > >>Thanks for any help > >> > >>-- > >>To unsubscribe from this list go to the following URL and read the > >>instructions: http://lists.samba.org/mailman/listinfo/samba > >> > >> > > > > > > > >
I have a lot of old files in the printer spooling directory. Can I restart the jobs ? If not how can I clean the directory ? Simply removing the files ? Claude
If you restart the lpd daemon, and those jobs just sit there, then, they are done. Just delete them manually. Joel On Mon, Dec 16, 2002 at 05:42:06PM +0100, Claude Frantz wrote:> I have a lot of old files in the printer spooling directory. > Can I restart the jobs ? If not how can I clean the directory ? > Simply removing the files ? > > Claude > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba