I have a script I want to update every day. So I have to use a crontab. How can I run the script using the Crontab?
UPDATE
i use ubuntu.
I have a script I want to update every day. So I have to use a crontab. How can I run the script using the Crontab?
UPDATE
i use ubuntu.
Suppose you want to update using you bash script everyday at 12:15am.
Then add an entry into /etc/crontab
like this
15 0 * * * /home/your_bash_script.sh
Just for additional information, the time entries in cron are added as
* * * * * * <your-bash-script-path>
| | | | | |
| | | | | +-- Year (range: 1900-3000)
| | | | +---- Day of the Week (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month (range: 1-31)
| +---------- Hour (range: 0-23)
+------------ Minute (range: 0-59)