Work with incron
salt.modules.incron.
list_tab
(user)¶Return the contents of the specified user's incrontab
CLI Example:
salt '*' incron.list_tab root
salt.modules.incron.
ls
(user)¶This function is an alias of list_tab
.
Return the contents of the specified user's incrontab
CLI Example:
salt '*' incron.list_tab root
salt.modules.incron.
raw_incron
(user)¶Return the contents of the user's incrontab
CLI Example:
salt '*' incron.raw_incron root
salt.modules.incron.
raw_system_incron
()¶Return the contents of the system wide incrontab
CLI Example:
salt '*' incron.raw_system_incron
salt.modules.incron.
rm
(user, path, mask, cmd)¶This function is an alias of rm_job
.
Remove a incron job for a specified user. If any of the day/time params are specified, the job will only be removed if the specified params match.
CLI Example:
salt '*' incron.rm_job root /path
salt.modules.incron.
rm_job
(user, path, mask, cmd)¶Remove a incron job for a specified user. If any of the day/time params are specified, the job will only be removed if the specified params match.
CLI Example:
salt '*' incron.rm_job root /path
salt.modules.incron.
set_job
(user, path, mask, cmd)¶Sets an incron job up for a specified user.
CLI Example:
salt '*' incron.set_job root '/root' 'IN_MODIFY' 'echo "$$ $@ $# $% $&"'
salt.modules.incron.
write_incron_file
(user, path)¶Writes the contents of a file to a user's incrontab
CLI Example:
salt '*' incron.write_incron_file root /tmp/new_incron
salt.modules.incron.
write_incron_file_verbose
(user, path)¶Writes the contents of a file to a user's incrontab and return error message on error
CLI Example:
salt '*' incron.write_incron_file_verbose root /tmp/new_incron
Generated on June 18, 2020 at 04:09:58 UTC.
You are viewing docs for the latest stable release, 3001. Switch to docs for the previous stable release, 3000.3, or to a recent doc build from the master branch.
© 2020 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy