I am using sphinx for searching. I get new data everyday which is added in the database.
我正在使用sphinx进行搜索。我每天都会获得新数据,这些数据会添加到数据库中。
I have to add this data into the sphinx search index so that it can be searched. For that I need to reindex the sphinx search index at regular intervals.
我必须将这些数据添加到sphinx搜索索引中,以便可以搜索它。为此,我需要定期重新索引狮身人面像搜索索引。
How can I set a cron in linux to do so?
如何在linux中设置cron呢?
1 个解决方案
#1
6
a crontab is defined like this:
crontab的定义如下:
MIN HOUR DOM MON DOW CMD
so if you want to run a task on a daily basis try:
所以如果你想每天运行一个任务,试试:
0 0 * * * /path/to/your/script
that will trigger the launch of your script everyday at 0:00
这将在每天0:00触发您的脚本启动
#1
6
a crontab is defined like this:
crontab的定义如下:
MIN HOUR DOM MON DOW CMD
so if you want to run a task on a daily basis try:
所以如果你想每天运行一个任务,试试:
0 0 * * * /path/to/your/script
that will trigger the launch of your script everyday at 0:00
这将在每天0:00触发您的脚本启动