How do I create a cron job that will run everyday at 12:20am? and 5:20 AM ?
Currently running Ubuntu 12.04 LTS 64-bit
Any Help Pls |
This will answer your questions related to cron and example configs: http://www.adminschoice.com/crontab-quick-reference/
|
You can type command "crontab -e" in terminal, which will open crontab file in vi editor.
In that file, you can use following line to run your job 1) To run job everyday at 12:20 AM 20 0 * * * "command or script to be executed" 2) To run job everyday at 5:20 AM 20 5 * * * "command or script to be executed" |
The crontab for "everyday at 12:20am and 5:20am
* 12 * * * /usr/bin/wget --spider "http://www.domain.com/cron.php >/dev/null 2>&1 * 5 * * * /usr/bin/wget --spider "http://www.domain.com/cron.php >/dev/null 2>&1 Pls This examples Not Working Thx |
Please check your syntax against the reference document, your cron job is set to run at 6 AM and 1 PM every day. The hours run 0-23 not 1-24, minutes run 0-59 instead of 1-60 and so on.
|
Hi. /etc/ has /corn.daily, .hourly, .monthly, and .weekly preset configs to modify and go... best wishes and have fun. :)
|
Quote:
|
anyone that cares, can test their crons at http://www.dataphyx.com/cronsandbox/cronsandboxgui.php
|
|
All times are GMT -5. The time now is 08:28 AM. |