How to add cron job in linux

I use sphinx for search. Every day I get new data that is added to the database.

I need to add this data to the sphinx search index so that it can be searched. To do this, I need to re-index the sphinx search index at regular intervals.

How can I install cron in linux for this?

+6
source share
1 answer

crontab is defined as follows:

MIN HOUR DOM MON DOW CMD 

therefore, if you want to run the task daily, try:

 0 0 * * * /path/to/your/script 

which will run your script every day at 0:00

+6
source

Source: https://habr.com/ru/post/917602/


All Articles