Work with cron
Return the contents of the specified user's crontab
CLI Example:
salt '*' cron.list_tab root
Return the contents of the specified user's crontab
CLI Example:
salt '*' cron.list_tab root
Return the contents of the user's crontab
CLI Example:
salt '*' cron.raw_cron root
Remove a cron job for a specified user.
CLI Example:
salt '*' cron.rm_job root '*' '*' '*' '*' 1 /usr/local/weekly
Remove cron environment variable for a specified user.
CLI Example:
salt '*' cron.rm_env root MAILTO
Remove a cron job for a specified user.
CLI Example:
salt '*' cron.rm_job root '*' '*' '*' '*' 1 /usr/local/weekly
Set up an environment variable in the crontab.
CLI Example:
salt '*' cron.set_env root MAILTO [email protected]
Sets a cron job up for a specified user.
CLI Example:
salt '*' cron.set_job root '*' '*' '*' '*' 1 /usr/local/weekly
Set up a special command in the crontab.
CLI Example:
salt '*' cron.set_special @hourly 'echo foobar'
Writes the contents of a file to a user's crontab
CLI Example:
salt '*' cron.write_cron_file root /tmp/new_cron
Writes the contents of a file to a user's crontab and return error message on error
CLI Example:
salt '*' cron.write_cron_file_verbose root /tmp/new_cron