Setting Up CronTab
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.
Add Commands to the CronTab FileOn most systems, you must get permission from the system administrator before you can submit job requests to cron. On some shared systems, because there is only one crontab file, only the administrator has access to the crontab command. | 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 |
Copyright© 2024 IFS AB. Copying prohibited. All rights reserved.