Skip to content

Instantly share code, notes, and snippets.

@tricantivu
Last active October 22, 2023 00:43
Show Gist options
  • Save tricantivu/20f35504455e84eee4eb0378b1b59ef6 to your computer and use it in GitHub Desktop.
Save tricantivu/20f35504455e84eee4eb0378b1b59ef6 to your computer and use it in GitHub Desktop.
Personal guidelines for writing cronjobs
# 1. Wrap lines as you wish.
# 2. Do not use tabs for indentation.
# 3. Write a blank line after each cronjob.
# 4. Use numerical values instead of names.
# 5. Set the least amount of directories in the PATH environment variable as possible.
# 6. Use the mktemp command to create files.
# 7. Delimit fields by one space character, unless more are needed.
# 8. Group cronjobs performing similar tasks (e.g deleting files) by sections.
#
# Use a comment block to indicate a section.
#
# For example:
#
# ####################
# # Delete old files #
# ####################
# cronjob
#
# cronjob
#
# cronjob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment