UPDATE: Crontab file syntax checker?

From: Gene Siepka (gsie44@tsg.cbot.com)
Date: Fri Jan 23 2004 - 09:51:28 EST


I got several emails asking if I use crontab -e to edit the crontab file.

In our setup, (Veritas Cluster Server) to make a change to that user's crontab
file, I have to edit a file that lives on the shared storage of the cluster.
VCS is constantly comparing the real crontab file
(/var/spool/cron/crontabs/user) to the VCS crontab file. If it detects a
change, it will copy the changes from the VCS crontab file into the real,
running crontab.

So I'm looking for some kind of utility to look thru a file and make sure its
acceptable to be a crontab file.

Thanks

On Thursday 22 January 2004 08:32 am, Gene Siepka wrote:
> Hey kids,
>
> Ever heard of anything like this?
>
> In this particular environment, I've got a crontab file, with like 400
> lines in it. (Don't get me started, it sucks beyond belief) The crontab
> file is monitored by Veritas Cluster, and cron for this user is setup as a
> service in VCS.
> I've got to make changes to that file it seems like daily, and I've had it
> happen once or twice where if there is a typo in the crontab file, (extra
> comma, blank line.. etc.) VCS freaks out and brings down the cluster.
>
> Anyway is there any utility out there that will read thru a file and make
> sure it is in the proper format for a crontab file?
>
> Thanks!
>
> Gene Siepka
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:53 EDT