Skip to content
HALOWERK

Codewerk

crontab lint

Implements Vixie/Debian cron semantics from crontab(5) and cron.h of Debian cron 3.0pl1-197: fields minute 0-59, hour 0-23, day 1-31, month 1-12 or names, weekday 0-7 or names, lists, ranges and steps; day-of-month and day-of-week are OR-combined only when neither field starts with "*"; % becomes a newline; environment lines are not expanded ($VAR, ~); default PATH /usr/bin:/bin and SHELL /bin/sh; a missing final newline breaks the crontab; commands are limited to 998 characters. The.

POST https://code.halowerk.com/v1/crontab-lint

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
crontabstringYesCrontab file content.
systembooleanNotrue for /etc/crontab and /etc/cron.d files (user field after the time fields).
startstringNoStart of the evaluation horizon (default: now, rounded to the minute).
horizon_daysintegerNo
simultaneous_thresholdintegerNo
durationsarrayNoExpected run time per crontab line, for overlap detection.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "crontab"
  ],
  "properties": {
    "crontab": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200000,
      "description": "Crontab file content."
    },
    "system": {
      "type": "boolean",
      "default": false,
      "description": "true for /etc/crontab and /etc/cron.d files (user field after the time fields)."
    },
    "start": {
      "type": "string",
      "format": "date-time",
      "description": "Start of the evaluation horizon (default: now, rounded to the minute)."
    },
    "horizon_days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 14,
      "default": 7
    },
    "simultaneous_threshold": {
      "type": "integer",
      "minimum": 2,
      "maximum": 50,
      "default": 3
    },
    "durations": {
      "type": "array",
      "maxItems": 200,
      "description": "Expected run time per crontab line, for overlap detection.",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "line",
          "minutes"
        ],
        "properties": {
          "line": {
            "type": "integer",
            "minimum": 1
          },
          "minutes": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 100000
          }
        }
      }
    }
  }
}

Open original schema

Published input example

{
  "crontab": "MAILTO=\"\"\n*/5 * * * * /usr/local/bin/sync.sh\n0 2 * * * backup.sh --date=$(date +%F)\n",
  "durations": [
    {
      "line": 2,
      "minutes": 12
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’