chkcrontab icon indicating copy to clipboard operation
chkcrontab copied to clipboard

Add check for max number of allowed characters

Open claire-1 opened this issue 2 years ago • 1 comments

This change was requested in this issue https://github.com/lyda/chkcrontab/issues/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.

claire-1 avatar Jun 22 '22 00:06 claire-1

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

gregorg avatar Aug 02 '22 07:08 gregorg