Author Topic: bin/cleandb.sh - How to built an cronjob?  (Read 2372 times)

Offline next4ideas

  • Jr. Member
  • **
  • Posts: 47
bin/cleandb.sh - How to built an cronjob?
« on: October 09, 2013, 02:18:09 PM »
Hello fellas, i read about a routine to clean mysql database with some trash that can be cumulated there,


could you help me to create this cron?
is that right?

php -f /usr/share/psa-roundcube/bin/cleandb.sh


second doubt is, 1 time per month is ok?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,557
    • http://SKaero.com/
Re: bin/cleandb.sh - How to built an cronjob?
« Reply #1 on: October 09, 2013, 04:11:24 PM »
Thats basically right, the only thing you need to consider is what you want to do with the output of the script.

Offline next4ideas

  • Jr. Member
  • **
  • Posts: 47
Re: bin/cleandb.sh - How to built an cronjob?
« Reply #2 on: October 09, 2013, 05:32:44 PM »
hi Skaero,

you mean the email when cron runs?

sorry i did not understand,

this script will erase entries that are no long used, this is was i understood