add-scheduler-trigger
Allows you to add a new execution period for a scheduler job.
Syntax:
shell
sfiler-cli [options] add-scheduler-trigger [command options]| Command options | Required / Optional | Description |
|---|---|---|
| -j | Required | Job identifier (JobId). |
| -ce | Required | Cron expression defining the execution period. |
Example:
This example allows you to add a new execution for the job with identifier 1, scheduled to run every day at 3:00 PM.
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" add-scheduler-trigger -j 1 -ce "0 15 0 * * ?"shell
.\sfiler-config-cli.bat -l my-user -p my-password -cf "conf\sfiler.conf" add-scheduler-trigger -j 1 -ce "0 15 0 * * ?"Note on cron expressions
The cron expression follows the standard format: second minute hour day month day_of_week year
0 15 0 * * ?means: at second 0, minute 15, hour 0 (noon), every day, every month, every day of the week
For complete documentation on regular expression formats, visit the Quartz website: https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html
