A. cron is a time-based scheduling service in Linux / Unix-like computer operating systems.
Login to UNIX system
Type the following command to enter cronjob:
$ crontab -e
Each cronjob has following syntax:
# +---------------- minute (0 - 59) # | +------------- hour (0 - 23) # | | +---------- day of month (1 - 31) # | | | +------- month (1 - 12) # | | | | +---- day of week (0 - 6) (Sunday=0 or 7) # | | | | | * * * * * command to be executedTo get crontab to run a task every 10 minutes you could type as follow
*/10 * * * * /path/to/command
Save and close the file.
Tidak ada komentar:
Posting Komentar