Results 1 to 3 of 3

Thread: Way to purge CUPS jobs older than 1 hour?

  1. #1
    Join Date
    Sep 2010
    Beans
    12

    Way to purge CUPS jobs older than 1 hour?

    Hey folks,

    I've setup two printers through a system running Ubuntu server that are shared with 30-40 users on our school network.

    If the printers run out of ink or paper, they stop printing. The lazier members of staff don't proceed to recharge the ink or paper so when somebody does, hours later, the old jobs start printing again which the teachers no longer need or want.

    I'd like to automatically have my system purge print jobs older than 1 hour. I'm running CUPS and sharing the printers through SAMBA. How do I do this?


    John

  2. #2
    Join Date
    Sep 2010
    Beans
    12

    Re: Way to purge CUPS jobs older than 1 hour?

    Surely someone else has had this problem before me?

  3. #3
    Join Date
    Feb 2013
    Beans
    1

    Re: Way to purge CUPS jobs older than 1 hour?

    I'm probably a little late to this party, but I stumbled upon your post while looking for a solution for my CentOS setup:

    find /var/spool/cups/ -iname '[cd]*' -mmin +60 -delete && service cups restart

    **edited -mmin to reflect 60 minutes, I had it set for 24 hours
    Last edited by mulletor; February 6th, 2013 at 07:26 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •