[ale] Need ideas on how to maintian /etc/crontab
Jim Popovitch
jimpop at yahoo.com
Thu Feb 1 10:30:33 EST 2007
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
More information about the Ale
mailing list