[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re Crontab Entry Editing
From: |
Morgan Ives |
Subject: |
Re Crontab Entry Editing |
Date: |
Mon, 20 Dec 2004 15:11:30 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 |
Brian Seppanen seppy@chartermi.net wrote:
Has anyone successfully been able to define a process that safely can
modify cron using cfengine?
I assume that you are talking about crontab entries not "/usr/bin/crontab".
I routinely use "editfiles" to add, change and delete crontab entries in
Solaris, AIX, HPUX and Red Hat.
After runnning the "editfiles" you must run a "shellcommands" to cause the
update. For example in solaris:
/usr/bin/crontab /var/spool/cron/crontabs/<user account>
In Red Hat, you might want to delete the comment lines like
# (/tmp/crontab.dPWWsC/crontab installed on Thu Jul 22 16:15:44 2004)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
during the "editfiles" section. Otherwise they can build up.
Morgan
- Re Crontab Entry Editing,
Morgan Ives <=