Image

Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Why does crontab have different flags for its dry-run / linter mode?

+0
−0

If I look at my man 1 crontab, it says that crontab -n file will test the suitability of file as a parseable crontab file.

If I look at man 1 crontab on Man7 or ManKier, they both say that -n does something entirely different, and that it's -T for a linter.

  1. What gives?
  2. Can I run a command that actually performs the linting whichever system I'm on?
History

0 comment threads

1 answer

+0
−0

I found the Debian 13 manpage for cron(1). Notably, in the Conflicting Packages section of the sidebar, it lists cronie, whose manpage matches the ones linked in the question.

I guess I could write a script to read the manpage and pick which command to run, but that seems kind of insane. (Though maybe less insane than a distro-independent way of checking which package is installed that provides a crontab command...?)

History

0 comment threads

Sign up to answer this question »