Introduction
The Cron background process is a long-running service application that runs commands at specific dates and times. You can use this to schedule activities, either as one-time events or as recurring tasks. For commands that need to be run repeatedly, for example hourly, daily, or weekly, you can use the crontab command. The crontab command creates a crontab file containing commands and instructions for the cron process to run.
UNIX and LINUX Setup | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Add Commands to the CronTab File
| To add commands to the CronTab file:
minute hour day-of-month month day-of-week user command where:
4. Make any changes necessary to meet your needs. 5. Save and close the file. | |||||||||||||||||||||||||
Examples | */15 * * * * root php -f /opt/processmaker/workflow/engine/bin/cron.php */20 */2 * * * root php -f /opt/processmaker/workflow/engine/bin/messageeventcron.php
Current Dev setup: HELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO='' HOME=/
# For details see man 4 crontabs
# Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed
*/1 * * * * root php -f /opt/processmaker/workflow/engine/bin/cron.php */1 * * * * root php -f /opt/processmaker/workflow/engine/bin/messageeventcron.php */1 * * * * root php -f /opt/processmaker/workflow/engine/bin/timereventcron.php |