sean finney on 4 May 2005 16:13:57 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Utility to evaluate/debug crontab files


hi,

On Wed, May 04, 2005 at 12:09:29PM -0400, Sandhu, Suchindra wrote:
> Is there a way to evaluate crontab files ? Whenever I edit my crontab,
> I keep getting error messages such as:
> 
> <snip>

> Then I hack around whitespaces and newlines till I rectify the error.
> It would be nice to have a utility to debug such errors in a visually
> helpful way.

i find what works best for me is to put all the work in a script in
/usr/local/bin, and then drop a per-script crontab in /etc/cron.d (linux
specific).  that way, each cronjob has its own file (which is good for
a few reasons),  and there's not as much to worry about with the picky
crontab syntax since all the code is in a script in /usr/local.

sorry it's not exactly what you were looking for, but hope it's helpful
anyway...

	sean

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug