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.
- What gives?
- Can I run a command that actually performs the linting whichever system I'm on?
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...?)

0 comment threads