Crontab
(since EVL 2.4)
Create/update EVL section of current user’s crontab based on ‘crontab.sh’ file from current
directory or from <project_dir>
.
Synopsis
evl crontab update [-p|--project=<project_dir>] [-v|--verbose] evl crontab ( --help | --usage | --version )
Options
- -p, --project=<project_dir>
-
specify project folder if not the current working one
Standard options:
- --help
-
print this help and exit
- --usage
-
print short usage information and exit
- -v, --verbose
-
print to stderr info/debug messages of the component
- --version
-
print version and exit
Examples
- There is a ‘crontab.sh’ file in the EVL project created by ‘evl project new’ or ‘evl project sample’. It is usually a good start.
- Example of ‘crontab.sh’ file:
# crontab.sh -- schedule EVL project workflows # # This file is processed by 'evl crontab update' command to create/update crontab entries # # Schedule workflows per environment case "$EVL_ENV" in DEV) # Run workflow/sample.ewf Mo-Fr at 8:10, 10:10, 12:10, ..., 16:10 schedule 10 8-16/2 * * 1-5 sample.ewf ;; TEST) # Run workflow/sample.ewf Mo-Fr at 5:10am schedule 10 5 * * 1-5 sample.ewf # Restart (with the same Order Date) Mo-Fr at 6:10am schedule --restart 10 6 * * 1-5 sample.ewf ;; PROD) # Run workflow/sample.ewf daily at 5:10am schedule 10 5 * * * sample.ewf # Restart (with the same Order Date) at 6:10am schedule --restart 10 6 * * * sample.ewf ;; esac