1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. The forum software that supports hummy.tv will be upgraded on Sunday to XenForo 2.0 and so will be unavailable for periods during the day. This is a major upgrade which changes the look and feel of the forum somewhat but brings a host of improvements too. Please bear with us, there will doubtless be further style changes required following this work.

What can you do with Cron daemon

Discussion in 'HD/HDR-FOX T2 Customised Firmware' started by mihaid, Sep 26, 2011.

  1. mihaid

    mihaid Member

    that's it. I meant the question is in the title?
  2. raydon

    raydon Well-Known Member

    You can run shell commands automatically at specified dates and times.
  3. MattC

    MattC Member

    E.g. the auto-filer script runs every 15min to file your recordings into nice family-friendly sub-folders :)
  4. mihaid

    mihaid Member

    I think that is the only function that I found for it. If there are other people doing different things please enumerate.
  5. af123

    af123 Administrator Staff Member

    There are other packages that use it, but they're all doing the same thing. Running commands at times and intervals.
  6. SiHa

    SiHa Member

    I'm working on a little script that will periodically run from CRON and delete the oldest recordings when you have previously set a maximum number for that series. Inspired by realising that we had 97 episodes of Octonauts on the box last week!

    Series record is a little too easy to set methinks....
    Peter Galbavy likes this.
  7. Tim Day

    Tim Day Member

    It's worth distinguishing between cron and anacron. anacron is particularly useful on systems which aren't on 24/7 where you have tasks you want to schedule daily/weekly/monthly but trying to pick an hour of the day when the machine will definitely be on isn't possible. cron will just miss the event if the machine is off; anacron "catches up" the next time the machine is on. Good for infrequent backups, cleanups, scans, stuff like that.
    af123 likes this.
  8. af123

    af123 Administrator Staff Member

    Useful, I hadn't come across that before. Might come in useful for some of the packages.