MongoDB - Run script with Crontab -


i have script want update every day. have use crontab. how can run script using crontab?

update

i use ubuntu.

script file

suppose want update using bash script everyday @ 12:15am. add entry /etc/crontab this

15 0 * * * /home/your_bash_script.sh 

just additional information, time entries in cron added as

* * * * * * <your-bash-script-path> | | | | | |  | | | | | +-- year              (range: 1900-3000) | | | | +---- day of week   (range: 1-7, 1 standing monday) | | | +------ month of year (range: 1-12) | | +-------- day of month  (range: 1-31) | +---------- hour              (range: 0-23) +------------ minute            (range: 0-59) 

Comments