Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for max number of allowed characters #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

claire-1
Copy link

@claire-1 claire-1 commented Jun 22, 2022

This change was requested in this issue #22, and I have run into issues with crontab failing because of commands being too long, so having the linter catch this issue will be a big help.

This PR adds a check to catch lines that are longer than 998. It updates the test file as well. According to the crontab man pages, the maximum number of characters in the command field is 998 https://manpages.debian.org/jessie/cron/crontab.5.en.html.

According to the crontab man pages, the maximum number of characters in
the command field is 998
https://manpages.debian.org/jessie/cron/crontab.5.en.html. This PR adds
a check to catch lines that are longer than 998. It updates the test
file as well. This change was requested in this issue
lyda#22 and I have run into issues
with crontab failing because of lines being too long, so having the
linter catch this issue will be a big help.
@gregorg
Copy link
Contributor

gregorg commented Aug 2, 2022

Please make a PR to my fork: https://github.com/gregorg/chkcrontab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants