Core File Deletor
If you run eDirectory on Linux you may have experienced occasional problems which lead to the creation of core.xxx files in the dib directory. Clearly these are of use to Novell for troubleshooting but they can take up a large amount of space, some we have seen have been over 500MB.
I know it is possible to switch off the creation of core files as a load option for eDirectory, but if you want to allow the creation and tidy them either through a CRON or manual job, we have created some scripts that do the job.
There are two versions of the scripts, one for eDir 8.7 and one for 8.8.
The 8.8 script can cope with multiple instances of edir installed on the server by specifying the instance on the command line with the -i option, it defaults to instance 1 if none is specified.
The scripts are eDirectory install location agnostic because they work out the dib directory before deleting.
All actions, including no core files to delete, are recorded in a log file by default but this can be stopped with a command line option of -q (quiet).
There are of course many other ways to do this task but these are simple self configuring scripts that will suit most people.
Of course use at your own risk and test test test.
Thanks to my co-worker Jim Goodall for his help and guidance with these.