cronjob.create ============== Create a new cron job. `stderr` and `stdout` are boolean values which if `true`, represent that we would like to suppress standard error / standard output respectively. .. examples(websocket):: Create a cron job which executes `touch /tmp/testfile` after every 5 minutes. :::javascript { "id": "6841f242-840a-11e6-a437-00e04d680384", "msg": "method", "method": "cronjob.create", "params": [{ "enabled": true, "schedule": { "minute": "5", "hour": "*", "dom": "*", "month": "*", "dow": "*" }, "command": "touch /tmp/testfile", "description": "Test command", "user": "root", "stderr": true, "stdout": true }] } .. raw:: html
Cron job configuration data for the new job.
No Additional PropertiesWhether the cron job is active and will be executed.
Whether to redirect standard error output to email.
Whether to redirect standard output to email.
Cron schedule configuration for when the job runs.
No Additional Properties"00" - "59"
"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
Shell command or script to execute.
Human-readable description of what this cron job does.
System user account to run the command as.
The created cron job configuration.
No Additional PropertiesWhether the cron job is active and will be executed.
Whether to redirect standard error output to email.
Whether to redirect standard output to email.
Cron schedule configuration for when the job runs.
No Additional Properties"00" - "59"
"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
Shell command or script to execute.
Human-readable description of what this cron job does.
System user account to run the command as.
Unique identifier for the cron job.