create_cron_job
Schedule automated tasks on servers using cron syntax. Define commands and timing parameters to create recurring system jobs for maintenance or monitoring.
Instructions
Create a new scheduled cron job. Specify the command to run and the schedule using cron syntax (minutes, hours, days, months, weekdays). Use '' for 'every' (e.g., '/5' for every 5 minutes).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Server alias (e.g., 'pi1', 'web-server'). Uses default server if not specified. | |
| command | Yes | Command to execute | |
| minutes | No | Minutes (0-59, or * for every minute, or */5 for every 5 minutes) | * |
| hours | No | Hours (0-23, or * for every hour) | * |
| days | No | Day of month (1-31, or * for every day) | * |
| months | No | Month (1-12, or * for every month) | * |
| weekdays | No | Day of week (0-7, 0 and 7 are Sunday, or * for every day) | * |
| user | No | User to run the job as | root |
| active | No | Whether the job is active |