lyda / chkcrontab

A tool for checking system crontab files (/etc/crontab and /etc/cron.d normally) for errors and common mistakes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse user crontab

gregorg opened this issue · comments

commented

Add the ability to parse user crontabs: https://code.google.com/p/chkcrontab/issues/detail?id=2

Yes, saw that and saw I was too late to migrate issues. :(

But this works as a way to do it! Good idea. I've committed my home dir to a VCS for a long time - subversion, hg and now use vcsh as a wrapper around git. And I recently put in a way to maintain a user crontab per-machine. Having this would be a nice addition. Adding a vcsh hook to check crontabs before commits would save some screwups.

This will be a little tricky as the name issue is just part of it. I'll address that partially in #4.

What I think makes the most sense would be to add a -u option where it would ignore the file name and have it skip usernames.