[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Need ideas on how to maintian /etc/crontab
- Subject: [ale] Need ideas on how to maintian /etc/crontab
- From: jimpop at yahoo.com (Jim Popovitch)
- Date: Thu, 01 Feb 2007 10:30:33 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
On Thu, 2007-02-01 at 09:44 -0500, Jim wrote:
> I have a number of programs that run from /etc/crontab. These don't lend
> themselves to being run from an y of the cron.daily/cron.weekly, etc.
> Not all systems have all of the programs so I'm looking for a way to
> automate the insertion/deletion of the entries. I know I can write a
> perl script to do it, but I was hoping there was something already
> written to do it. The insert/delete will be driven by rpm -i or rpm -e,
> so it's gotta be a script or something callable from the %post rpm
> script set.
>
> Anyone know of a canned solution?
echo "* * * * * /usr/sbin/reboot" > /tmp/crontab.$$
crontab /tmp/crontab.$$
-Jim P.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part