Sun Solaris Cron - need to split cronfile, dump, reload then after 20 minutes put back the part split off
Posted on 2006-05-01
I have a lot of perl scripts that run from cron. Of these the first 20 lines of the file have to be commented out before I dump cron to disk for the cold backup and then after the backup I restart cron and uncomment out these 20 lines after 20 minutes. These perl scripts were written by a developer to monitor some hardware to ensure the hardware is up and running. I cannot change those scripts and am trying to figure out a way to split off these first 20 lines and reinsert them after 20 minutes. I am working on scripting my cold backup for oracle. If I do not comment these lines out for the 20 minutes after the database comes up they send out about 300 bogus emails saying systems are down.
Any good suggestions would be greatly appreciated.