Last active
October 22, 2023 00:43
-
-
Save tricantivu/20f35504455e84eee4eb0378b1b59ef6 to your computer and use it in GitHub Desktop.
Personal guidelines for writing cronjobs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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